difference between ESP.reset() and ESP.restart()?
- Details
- Created: Tuesday, 19 April 2016 08:02
What´s the difference between ESP.reset() and ESP.restart()?
https://github.com/esp8266/Arduino/issues/1722
Both work, but sometimes the ESP does not start again.
Answer:
ESP.reset()
is a hard reset and can leave some of the registers in the old state which can lead to problems, its more or less like the reset button on the PC.
ESP.restart()
tells the SDK to reboot, so its a more clean reboot, use this one if possible.
the boot mode:(1,7)
problem is known and only happens at the first restart after serial flashing.
if you do one manual reboot by power or RST pin all will work more info see: #1017