- 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.
Firmware (Micropython): esp8266-20170108-v1.8.7.bin
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40100000, len 32028, room 16
ho 0 tail 12 room 4
load 0x3ffe8000, len 1092, room 12
load 0x3ffe8450, len 3000, room 0
MicroPython v1.8.7-7-gb5a1a20a3 on 2017-01-09; ESP module with ESP8266