How safe is esp_restart()?
Posted: Fri Oct 09, 2020 11:33 pm
I'm working on a project that involves using an esp32 as a gateway to collect data from multiple sensors and send this data to aws-iot core.
In most cases I have a stable ethernet or Wi-Fi connection, but I have to back up data in an external flash in case data is not correctly sended.
What I also need is an external button to reset the board in certain cases(eg. when I need to change the Wi-Fi credentials, also stored in flash).
Is it a goot idea to use for that? Is it a "clean and safe" reboot or I can have problems if I call this function when another Task may be saving data on my external flash?
Thank's in advance!!
Gabriel Gardin!
In most cases I have a stable ethernet or Wi-Fi connection, but I have to back up data in an external flash in case data is not correctly sended.
What I also need is an external button to reset the board in certain cases(eg. when I need to change the Wi-Fi credentials, also stored in flash).
Is it a goot idea to use
Code: Select all
esp_restart()
Thank's in advance!!
Gabriel Gardin!