Jaka jest różnica między reset a restart zostało opisane w jednym z linków w źródłach.
Poniżej opis jak zadziałało to u mnie.
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
Kod źródłowy:
[ . . . ]