Chat freely about anything...
User avatar
By annanmig
#64907 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:
Code: Select allets 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
User avatar
By MHeys
#65080 Your error message is saying the reset cause is 2, which according to this post means it's the RST pin.


Otherwise I would have said you aren't yielding and it's a watchdog timer issue, but it's the wrong error for that and I haven't seen your code and I don't know Python anyway.

Maybe if you provide some code, someone who knows Python might be able to help more.