vladak / shield

code for ESP32 Adafruit Feather to get various sensor readings and publish them to MQTT broker
2 stars 0 forks source link

use safemode.py to restart the microcontroller #23

Closed vladak closed 6 months ago

vladak commented 6 months ago

As mentioned on https://github.com/adafruit/circuitpython/issues/9066#issuecomment-2057910232 , there is a way how to restart the microcontroller on the internal watchdog timer firing (or power dip). It would be nice to pass this information on somehow - maybe write it to flash (#12 ?) and maybe publish it to MQTT when code.py starts ?

vladak commented 6 months ago

documentation: circuitpython-safe-mode.pdf