Proper way to reboot?

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Proper way to reboot?

Postby zliudr » Wed Oct 23, 2019 6:38 am

Upon receiving new wifi credential, I'd like my esp32 to reboot. Being new really sucks. I don't know the proper way to reboot. Could someone point out how to do this? Thank you!

PeterR
Posts: 621
Joined: Mon Jun 04, 2018 2:47 pm

Re: Proper way to reboot?

Postby PeterR » Wed Oct 23, 2019 12:22 pm

Code: Select all

esp_restart()
or, if you like,

Code: Select all

*(NULL) = "restart";
;)
& I also believe that IDF CAN should be fixed.

zliudr
Posts: 360
Joined: Thu Oct 03, 2019 5:15 am

Re: Proper way to reboot?

Postby zliudr » Wed Oct 23, 2019 4:42 pm

Great! Thanks. Should I 32-bit long jump to the (NULL*) pointer and call pistol.shoot(self.foot) right before the long jump? ;)

wevets
Posts: 112
Joined: Sat Mar 09, 2019 2:56 am

Re: Proper way to reboot?

Postby wevets » Wed Oct 23, 2019 11:02 pm

And if you're writing in assembly, the HCF (halt and catch fire) instruction would be appropriate.

Who is online

Users browsing this forum: No registered users and 103 guests