Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By dannybackx
#37448 Hi,

I am using 2.0.0 , on Arduino 1.6.5, and I've tried using both the OTALeds and BasicOTA examples. I'm doing this on Linux.

I worked with the instructions on http://esp8266.github.io/Arduino/versio ... dates.html except I didn't get apps from other distributions, I just picked what I assume the IDE shows when you have 2.0.0 installed.

After this works, my next question will be how to incorporate in an existing app that already has a web server. I foolishly tried that first, failed, and now I'm falling back to the examples ;-)

Danny
User avatar
By krzychb
#37453 Hi Danny,

Support for ArduinoOTA has been just added with release of Arduino IDE 1.6.7 and the point is to use the exact s/w version according to doc just prepared for merging - https://github.com/krzychb/Arduino/blob ... arduinoota

EDIT: Now use merged doc under: https://github.com/esp8266/Arduino/blob ... updates.md instead

As for an example how to incorporate OTA in an existing app that already has a web server, try this one - https://github.com/krzychb/OnlineHumidi ... the-sketch

I believe you are in a good position to get it working this year :D
Good luck and post you finding.


Krzysztof
Last edited by krzychb on Wed Dec 30, 2015 3:55 pm, edited 1 time in total.
User avatar
By dannybackx
#37459 Thanks. Your example looks impressive !

I haven't updated the IDE many times yet, I'm new to Arduino. When I try 1.6.7 in a separate directory, it starts up well, but doesn't succeed in compiling for my board. What have I overlooked ?

Danny

Arduino: 1.6.7 (Linux), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 921600, 4M (3M SPIFFS)"

/tmp/a/arduino-1.6.7/arduino-builder -dump-prefs -logger=machine -hardware "/tmp/a/arduino-1.6.7/hardware" -hardware "/home/danny/.arduino15/packages" -tools "/tmp/a/arduino-1.6.7/tools-builder" -tools "/tmp/a/arduino-1.6.7/hardware/tools/avr" -tools "/home/danny/.arduino15/packages" -built-in-libraries "/tmp/a/arduino-1.6.7/libraries" -libraries "/home/danny/src/sketchbook/esp8266/libraries" -fqbn=esp8266:esp8266:nodemcuv2:CpuFrequency=80,UploadTool=esptool,UploadSpeed=921600,FlashSize=4M3M -ide-version=10607 -build-path "/tmp/build50532c4e1e6a0ddaa4ec9763ed22b24e.tmp" -warnings=none -prefs=build.warn_data_percentage=75 -verbose "/home/danny/src/sketchbook/esp8266/MyOTALeds/MyOTALeds.ino"

Board nodemcuv2 (platform esp8266, package esp8266) is unknown

Error compiling.
User avatar
By krzychb
#37494 Hi Danny,

I am using Arduino IDE primarily with Windows 7 and have only basic experience with Linux. But it was great opportunity to check it out 8-)

Using Ubuntu 14.04 LTS I was able to replicate issue you have.

1. I started with uploading Arduino 1.6.5-r5, unpacking it and moving to the /opt directory. After starting Arduino IDE, using Boards Manager, I have installed ESP8266 package version 2.0.0. I was able to compile sample sketch like Blink.ino without any issues.

2. Then I did the same with Arduino 1.6.7. After opening IDE 1.6.7 I have noticed that ESP boards were already there (without installing them with Boards Manager). I was also able to compile examples. This was including BasicOTA.ino, loading it using serial and then OTA port.

3. Then in IDE 1.6.7 I went to Boards Manager and reinstalled ESP8266 packages. At this moment the issues like you have started for my Arduino IDE 1.6.7. Interestingly IDE 1.6.5 seemed to be not affected at all and I was still able to compile sketches.

Since I do not have much experience with Linux I decided to just reinstall Ubuntu 14.04 LTS and repeated only steps 1 and 2. As result now I have two concurrent installations of Arduino IDE 1.6.5-r5 and 1.6.7, both working with ESP8266 package 2.0.0.

I believe the issue is related to contents of “(home)/.arduino15/packages/esp8266” directory that got somehow corrupted by installation of ESP8266 package from two different IDE.


Krzysztof