Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Croc
#50107 Hello I try to upload a couple of time. It doesn't work for me.

I see the port in the network list.

I have windows 7 profesional x64 arduino 1.6.5 and esp8266 community package 1.6.5-947- g39819f0
python installed 2.7.11 and the extra path is installed also.

I uploaded the DNS_SD_ARDUINO_OTA.ino and on serial monitor I see:

Arduino OTA Test
Sketch size: 304716
Free size: 741376
IP address: 192.168.1.72


The port appear in the list as: "esp8266-ota at 192.168.1.72 (generic ESP8266 module)

I select that as port and try to upload it to nodemcu v1.0 esp-12e.

I always get this:
Sketch uses 300,580 bytes (28%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 48,856 bytes (59%) of dynamic memory, leaving 33,064 bytes for local variables. Maximum is 81,920 bytes.
C:\Users\user\AppData\Roaming\Arduino15\packages\esp8266\tools\esptool\0.4.5/esptool.exe -vv -cd ck -cb 115200 -cp 192.168.1.72 -ca 0x00000 -cf C:\Users\user\AppData\Local\Temp\build4396499551313853560.tmp/DNS_SD_Arduino_OTA.cpp.bin
esptool v0.4.5 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
setting board to ck
setting baudrate from 115200 to 115200
setting port from COM1 to 192.168.1.72
setting address from 0x00000000 to 0x00000000
espcomm_upload_file
stat C:\Users\user\AppData\Local\Temp\build4396499551313853560.tmp/DNS_SD_Arduino_OTA.cpp.bin success
error: Failed to open 192.168.1.72
error: espcomm_open failed

I also check with whoisconnectedsniffer and I see the esp8266 and the protocol mDNS, udp is the protocol.

What I am doing wrong?????
User avatar
By Croc
#50387 I also disable the firewall and also the same error.

I try the board package 2.10 and use example basicOTA, but the network port never appear in the arduino software.

The example DNS_SD_ARDUINO_OTA.ino appear but I can't upload to it.

Maybe somebody know what the problem is ??
User avatar
By krzychb
#50390 Hi @Croc,

DNS_SD_ARDUINO_OTA.ino sketch represents method of doing OTA that has been replaced / depreciated several months ago.
Did you consider upgrading your Arduino IDE to 1.6.7 or newer and esp8266 / Arduino core to 2.0.0 or newer to try the new method / BasicOTA.ino instead?

https://github.com/esp8266/Arduino/blob ... /readme.md

I do not see any obvious error in what you are doing. However, I have switched to the new implementation of OTA several months ago.
Now it is difficult for me to revert to it and check it in details. I think you will be better off getting support to what is currently supported.

I have checked other IDE like PlatformIO or Visual Micro and they support latest implementation of OTA out of the box as well.

Krzysztof