software rest from python code vs CRTL-D
Posted: Sun Jan 23, 2022 1:26 am
so when I press CRTL-D in repl it software resets then runs boot.py then main.py but nicely maintains USB and network connections.
When I run machine.soft_reset() in my python code it resets then runs boot.py but doesn't run main.py. It also nicely maintains USB and network connections
boot.py has network connection and starts webrepl then main.py just has print("Shane makes his mark")
Here's my repl output on CTRL-D
This is my output from machine.soft_reset()
When I run machine.soft_reset() in my python code it resets then runs boot.py but doesn't run main.py. It also nicely maintains USB and network connections
boot.py has network connection and starts webrepl then main.py just has print("Shane makes his mark")
Here's my repl output on CTRL-D
Code: Select all
MPY: soft reboot
trying to connect to WiFi
('192.168.0.146', '255.255.255.0', '192.168.0.1', '192.168.0.1')
WebREPL daemon started on ws://192.168.0.146:8266
Started webrepl in normal mode
Shane makes his mark
MicroPython v1.17 on 2021-09-02; ESP32 module with ESP32
Type "help()" for more information.
Code: Select all
MPY: soft reboot
trying to connect to WiFi
('192.168.0.146', '255.255.255.0', '192.168.0.1', '192.168.0.1')
WebREPL daemon started on ws://192.168.0.146:8266
Started webrepl in normal mode