Hi
Is there a way to restart the ESP32, the equivalent of a power cycle ?
I tried esp_restart(), but it seems that it only restarts the CPU, not the WiFi, Bluetooth etc. How do I trigger a restart which is an equivalent of a power cycle ?
Restart ESP Programmatically
-
- Posts: 9761
- Joined: Thu Nov 26, 2015 4:08 am
Re: Restart ESP Programmatically
Esp_restart should indeed do a full restart, to my knowledge. How is it not working for you?
Re: Restart ESP Programmatically
esp_restart() will gracefully restart whole system including WiFi and Bluetooth.ankitdaf wrote:Hi
Is there a way to restart the ESP32, the equivalent of a power cycle ?
I tried esp_restart(), but it seems that it only restarts the CPU, not the WiFi, Bluetooth etc. How do I trigger a restart which is an equivalent of a power cycle ?
So, you can test like start WiFi into station mode and connect it with configured Router or form network into AP mode and connect mobile with ESP. Then restart ESP using that API and you can see connection lost.
It means it will turned off WIFI with CPU as well.
Regards,
Ritesh Prajapati
Ritesh Prajapati
Who is online
Users browsing this forum: No registered users and 122 guests