Getting the ESP8266 to reboot micropython itself... possible?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
theMusicMan
Posts: 23
Joined: Mon Feb 11, 2019 12:16 am

Getting the ESP8266 to reboot micropython itself... possible?

Post by theMusicMan » Fri Mar 01, 2019 3:36 pm

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

theMusicMan
Posts: 23
Joined: Mon Feb 11, 2019 12:16 am

Re: Getting the ESP8266 to reboot micropython itself... possible?

Post by theMusicMan » Fri Mar 01, 2019 3:41 pm

Update: I found this...

http://docs.micropython.org/en/v1.8.6/w ... reset.html

Will test on my set up.

Post Reply