Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By krzychb
#42917 @Shellfishgene,

Thank you for update and good news!

Adressing your previus question regarding "way to tell the Arduino IDE the IP manually", go to File > Preferences and under "Show verbose output during:" cheek out "upload". Then during OTA upload you will see output like below:

Code: Select allSketch uses 245,344 bytes (23%) of program storage space. Maximum is 1,044,464 bytes.
Global variables use 32,980 bytes (40%) of dynamic memory, leaving 48,940 bytes for local variables. Maximum is 81,920 bytes.
python.exe C:\Users\Krzysztof\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0/tools/espota.py -i 192.168.1.115 -p 8266 --auth= -f C:\Users\KRZYSZ~1\AppData\Local\Temp\buildc97a41dc812411c761fa4a103111960a.tmp/BasicOTA.ino.bin
Uploading...........................................................................................................................................................................

The specific command responsible for upload is extracted below and you can run it manually to upload your module. The IP of my module is 192.168.1.115 where you need to put your own.
Code: Select allpython.exe C:\Users\Krzysztof\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0/tools/espota.py -i 192.168.1.115 -p 8266 --auth= -f C:\Users\KRZYSZ~1\AppData\Local\Temp\buildc97a41dc812411c761fa4a103111960a.tmp/BasicOTA.ino.bin

A practical example how to add a menu option to Arduino IDE menu and pass parameters to scripts like above is covered in this post.

Hacking and tweaking Arduino IDE is fun :D

Krzysztof