Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By GregryCM
martinayotte wrote:For ESP crashes, maybe it is related to bug https://github.com/esp8266/Arduino/issues/596.

Are you using ESP8266WebServer ?

I've done some fixes on that yesterday, I've submit a PR to IGRR, waiting for merge.
(But you can grab the fixes and manually patch your environment)

I looked at your fixes, and it should address the issues that I am seeing. I'll try tonight.

I am not familiar with the under workings of the ESP8266, but depending on the length of the binary data being sent, does the watchdog need to be kicked in the loop?

User avatar
By GregryCM
#28664 I replaced 3 files in my environment, built, and get the following errors:

Maybe you have a newer WiFiClient.h?

Arduino: 1.6.5 (Windows 7), Board: "Generic ESP8266 Module, Serial, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS)"

C:\Users\Greg\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WiFi\src\WiFiClient.cpp:180:50: error: no 'size_t WiFiClient::write_P(const char*, size_t)' member function declared in class 'WiFiClient'
size_t WiFiClient::write_P(PGM_P buf, size_t size)
C:\Users\Greg\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WiFi\src\WiFiClient.cpp:293:31: error: no 'IPAddress WiFiClient::localIP()' member function declared in class 'WiFiClient'
IPAddress WiFiClient::localIP()
C:\Users\Greg\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WiFi\src\WiFiClient.cpp:301:32: error: no 'uint16_t WiFiClient::localPort()' member function declared in class 'WiFiClient'
uint16_t WiFiClient::localPort()
C:\Users\Greg\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.5-947-g39819f0\libraries\ESP8266WiFi\src\WiFiClient.cpp:332:48: error: no 'void WiFiClient::stopAllExcept(WiFiClient*)' member function declared in class 'WiFiClient'
void WiFiClient::stopAllExcept(WiFiClient * exC) {
Error compiling.
User avatar
By martinayotte
GregryCM wrote:Maybe you have a newer WiFiClient.h?

This was one of my contribution that was been merged in the main tree 3 weeks ago.
See commit : https://github.com/esp8266/Arduino/comm ... f5adcc4e6f

If you install staging, you will get it. Otherwise, you will need manual merge there too.