Disable "boot.py" after execution once #9602
nastiliano
started this conversation in
General
Replies: 2 comments 10 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
-
The boot.py could rename itself.
Another method could be to touch a file (from somewhere) and checking in boot.py if this files exists. If the file exists, skip the code in boot.py.
|
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everybody,
I want that my application runs "boot.py" once (set up my ESP32 in default mode wifi, variables in non-volatile memory, etc) and then no more. And if a PC user order via Wifi to enable again the do it again to reset .
In other words: Start my app in default parameters, and then, don't execute "boot.py" anymore and only when "main.py" orders, execute "boot.py" again to set "factory" restore defaults.
I've been searching for boot modes but I think it's only possible power up the device in safe mode that ignores both files "boot.py" and "main.py·.
Could anybody help me?
Thank you very much!!
Beta Was this translation helpful? Give feedback.
All reactions