You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If WiFi is disconnected (long enough) an exception is thrown and the MCU halts. I'm not really sure if this is an issue with arduino-mqtt or the ESP8266 core for Arduino. I'm using a NodeMCU ESP-12 Development Kit V1.0 board.
In order to simulate the WiFi disconnect I used Android's "Mobile Hotspot" functionality and had ESP8266 connected on it. Then I could easily turn it on and off.
Decoding 12 results
0x40203f3e: WiFiClient::connect(IPAddress, unsigned short) at C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 329
0x40204f38: Print::write(unsigned char const*, unsigned int) at C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/Print.cpp line 99
0x4010502c: ets_timer_arm_new at ?? line ?
0x40203b00: WiFiClient::connect(char const*, unsigned short) at C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\libraries\ESP8266WiFi\src/WiFiClient.cpp line 329
0x40204d41: MQTTClient::connected() at C:\Users\user\Documents\Arduino\libraries\MQTT\src/MQTTClient.h line 327 (discriminator 1)
0x4020335f: MQTTClient::connect(char const*, char const*, char const*) at C:\Users\user\Documents\Arduino\libraries\MQTT\src/MQTTClient.h line 173
: (inlined by) connect() at C:\Users\user\AppData\Local\Temp\arduino_modified_sketch_969978/AdafruitHuzzahESP8266.ino line 43
0x402021a6: delay at C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/core_esp8266_wiring.c line 54
0x40203524: loop at C:\Users\user\AppData\Local\Temp\arduino_modified_sketch_969978/AdafruitHuzzahESP8266.ino line 63
0x40204380: lwmqtt_arduino_timer_set(void*, unsigned int) at C:\Users\user\Documents\Arduino\libraries\MQTT\src/system.cpp line 11
0x40204b45: esp_schedule at C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/core_esp8266_main.cpp line 57
0x40204b70: loop_wrapper at C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/core_esp8266_main.cpp line 57
0x40100710: cont_norm at C:\Users\user\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.0\cores\esp8266/cont.S line 109
The text was updated successfully, but these errors were encountered:
giannoug
changed the title
Reconnecting in ESP8266 fails
Reconnecting in ESP8266 fails with exception
Jan 28, 2018
Turned out to be a bug in the ESP8266 core! It's a known bug and a milestone for version 2.4.1. Setting LwIP variant to 1.4 Prebuild (Tools > lwIP Variant) eliminates the issue in the meantime.
If WiFi is disconnected (long enough) an exception is thrown and the MCU halts. I'm not really sure if this is an issue with
arduino-mqtt
or the ESP8266 core for Arduino. I'm using a NodeMCU ESP-12 Development Kit V1.0 board.In order to simulate the WiFi disconnect I used Android's "Mobile Hotspot" functionality and had ESP8266 connected on it. Then I could easily turn it on and off.
Steps to reproduce
AdafruitHuzzahESP8266
to an ESP8266Sample exception
Trace (through Serial)
Decoded (using
me-no-dev/EspExceptionDecoder
)The text was updated successfully, but these errors were encountered: