ESP8266 reset while running code
Posted: Thu Apr 13, 2017 7:22 am
I have an ESP8266 running Micropython. The code processes the following:
- Read a DHT22 sensor every 2 seconds
- Send sensor data to ThingSpeak's cloud service after each sensor read
- Send an SMS request to Twilio's cloud service (if sensor reading exceeds a limit)
After three requests to ThingSpeak and a request to Twilio the device gets reset.
And sometimes the Twilio request succeeds, but then the devices gets reset during the next request to Thingspeak.
After many hours of searching the Net and debugging the code, I have still not been able to solve this problem.
Any advice?
Firmware (Micropython): esp8266-20170108-v1.8.7.bin
Device output:
- Read a DHT22 sensor every 2 seconds
- Send sensor data to ThingSpeak's cloud service after each sensor read
- Send an SMS request to Twilio's cloud service (if sensor reading exceeds a limit)
After three requests to ThingSpeak and a request to Twilio the device gets reset.
And sometimes the Twilio request succeeds, but then the devices gets reset during the next request to Thingspeak.
After many hours of searching the Net and debugging the code, I have still not been able to solve this problem.
Any advice?
Firmware (Micropython): esp8266-20170108-v1.8.7.bin
Device output:
Code: Select all
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 32028, room 16
tail 12
chksum 0x40
ho 0 tail 12 room 4
load 0x3ffe8000, len 1092, room 12
tail 8
chksum 0x17
load 0x3ffe8450, len 3000, room 0
tail 8
chksum 0x56
csum 0x56
MicroPython v1.8.7-7-gb5a1a20a3 on 2017-01-09; ESP module with ESP8266