I’d like an opinion on what i’m missing. (This is my first post here, I’m extremely new to this world, please assume i know nothing in your answer.)
I was successful in flashing my esp8266-01 with a ttyl over usb from windows machine, The cloud based blynk server saw my esp that it was online.
I’m using Audrino IDE 1.8.4.
The second flash was several weeks later: I attempted to change the code to enable OTA flashing.
The IDE sees this Network device in ports. But my blynk app on android no longer sees it. I’ve updated my python to v3* and java seems to be running as well.
I’ve also attempted to replace all the libraries and tools from blynk downloads getting started site in feeble attempt to help myself out before asking here.
Since I’m so new to this I’m assuming i’m missing something little.
When looking at the code, *.h headings are orange but the #include <BlynkSimpleEsp8266.h> is not.
1st question…
Is this indicative of anything?
2nd question…
This is the verbose when attempting to upload OTA.
"Arduino: 1.8.4 (Windows 10), Board: “Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (512K SPIFFS), ck, Disabled, None”
Archiving built core (caching) in: C:\Users\mporterm\AppData\Local\Temp\arduino_cache_921145\core\core_esp8266_esp8266_generic_CpuFrequency_80,FlashFreq_40,FlashMode_dio,UploadSpeed_115200,FlashSize_1M512,ResetMethod_ck,Debug_Disabled,DebugLevel_None_____965b30be6e4013497578516a2065d38a.a
Sketch uses 249019 bytes (49%) of program storage space. Maximum is 499696 bytes.
Global variables use 34672 bytes (42%) of dynamic memory, leaving 47248 bytes for local variables. Maximum is 81920 bytes.
python.exe C:\Users\mporterm\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0/tools/espota.py -i 192.168.0.22 -p 8266 --auth= -f C:\Users\mporterm\AppData\Local\Temp\arduino_build_597967/blynktestOTA.ino.bin
19:50:21 [ERROR]: No response from device
19:50:21 [ERROR]: No response from device "
The code i’m attempting to work with…
#include <Blynk.h>
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#include <BlynkSimpleEsp8266.h>
const char auth[] = "***";
const char ssid[] = "***";
const char pass[] = "***";
const int ESP_BUILTIN_LED = 2;
void setup() {
Serial.begin(115200);
Serial.println("Booting");
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, pass);
while (WiFi.waitForConnectResult() != WL_CONNECTED) {
Serial.println("Connection Failed! Rebooting...");
delay(5000);
ESP.restart();
}
// Port defaults to 8266
// ArduinoOTA.setPort(8266);
// Hostname defaults to esp8266-[ChipID]
// ArduinoOTA.setHostname("myesp8266");
// No authentication by default
// ArduinoOTA.setPassword((const char *)"123");
ArduinoOTA.onStart([]() {
Serial.println("Start");
});
ArduinoOTA.onEnd([]() {
Serial.println("\nEnd");
});
ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
Serial.printf("Progress: %u%%\r", (progress / (total / 100)));
});
ArduinoOTA.onError([](ota_error_t error) {
Serial.printf("Error[%u]: ", error);
if (error == OTA_AUTH_ERROR) Serial.println("Auth Failed");
else if (error == OTA_BEGIN_ERROR) Serial.println("Begin Failed");
else if (error == OTA_CONNECT_ERROR) Serial.println("Connect Failed");
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
else if (error == OTA_END_ERROR) Serial.println("End Failed");
});
ArduinoOTA.begin();
Serial.println("Ready");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop() {
ArduinoOTA.handle();
Blynk.run();
}
I hope my question is not too rudimentary
Sam.