Home/Support/Support Forum/If you disable the Automatically run MicroPython application at module startup setting... how to run on demand?

If you disable the Automatically run MicroPython application at module startup setting... how to run on demand?

0 votes
If you disable the "Automatically run MicroPython application at module startup" setting... is there a python command run the firmware? The micropython documentation tells you that you can enable/disable this feature, but fails to follow up about if you disable the run-on-start-up, how to prompt it to run on demand?

thanks!

:)
asked Jul 31 in MicroPython by edunn106 New to the Community (22 points)

Please log in or register to answer this question.

2 Answers

0 votes
https://www.digi.com/resources/documentation/digidocs/90001539/#reference/r_cmd_py.htm%3FTocPath%3DAT%2520commands%7CMicroPython%2520commands%7C_____2
answered Jul 31 by mvut Veteran of the Digi Community (13,036 points)
so, no? none of those commands appear to run a start-up-disabled micropython file on demand.
You can stop it with the commands. But you would need to start it back up by enabling the auto start up and rebooting or reloading the script and running it.
0 votes
You can press CTRL-R in the REPL to have it run code stored in /flash/main.mpy.
answered Aug 3 by TomCollins Veteran of the Digi Community (1,961 points)
is there a way to tie this into a gui button press? or send it as an AT command or something?
...