I would like to use the new ESP8266 OTA Debugging feature, but first I have to get the regular OTA to work. I copied the example from "Full working ESP8266 OTA Code Example:-" from [url]https://www.visualmicro.com/page/esp8266.aspx[url].
The sketch uploads over FTDI Serial, I use Debug set to Off, and then I remove the programming mode pin (using ESP01) and reset the board.
The sketch runs and I get this output on the serial monitor:
Opening port
Port open
Booting
Mode set
Begin complete
SSID: NETGEAR11
DHCP: Waiting for IP Address ...
IP Address: 192.168.1.5
Connected to wifi
and I see the port listed in the VM menu under "Port or IP". I get output to the FTDI serial monitor periodically that I put in the code with a non-blocking simple timer. Now I try to do the OTA upload. I select the network port and then Build and Upload. The error I get is:
Uploading 'VM_ESP8266_OTA_Example' to 'Generic ESP8266 Module' using '192.168.1.5'
Authenticating...FAIL
The uploader process failed
21:42:37 [ERROR]: Authentication Failed
The only output on the Serial Monitor is:
Error[0]: Auth Failed
I notice in the sketch the following 2 lines:
// No authentication by default
ArduinoOTA.setPassword((const char *)"123");
I comment out the 2nd line, repeat the above process, and get this error with the line commented out:
Uploading 'VM_ESP8266_OTA_Example' to 'Generic ESP8266 Module' using '192.168.1.5'
21:48:06 [ERROR]: No response from device
The uploader process failed
And the accompanying Serial monitor output:
OTA Start
Progress: 0%
Error[2]: Connect Failed
Error[4]: End Failed
Could you please help me get this working? OTA debugging has a lot of potential.