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