Hi All
OK, so this may already be possible, apologies I am fairly new to the world of python and micropython. So, I have successfully flashed micropython to several of my ESP8266 boards and have one set up and running with a BME280 environment sensor connected, uploading data to Adafruit.io. However, there is a problem that I can't seem to get to the bottom of.
After about 2 hours or so, the ESP8266 stops uploading its readings to Adafruit, and does nothing until I press the reboot button on the board (or reupload my code as main.py)
As I try to figure this out - which is not easy, but nonetheless enjoyable for a non programmer like me - I was wondering if there is a way I could automate the rebooting of the ESP8266? is there a command or function that I could run in my code every 2 hours that then reboots Micropython on the ESP8266?
Many thanks.
John
Getting the ESP8266 to reboot micropython itself... possible?
-
- Posts: 23
- Joined: Mon Feb 11, 2019 12:16 am
-
- Posts: 23
- Joined: Mon Feb 11, 2019 12:16 am
Re: Getting the ESP8266 to reboot micropython itself... possible?
Update: I found this...
http://docs.micropython.org/en/v1.8.6/w ... reset.html
Will test on my set up.
http://docs.micropython.org/en/v1.8.6/w ... reset.html
Will test on my set up.