Wifi stops working after Downloading program
-
Hi,
I am writting a python program for the M5Stick pro using UIFlow. It connects to a rest API to get some data and display it to the screen.
When I click RUN the program is run correctly in the M5Stick. It connects to the server and displays the data. When I click the download button to have the program run at startup, if I turn the M5 off and on again the connection to the server will fail immediately, it looks like it does not store the wifi config after downloading a program.
Any ideas of what can be wrong?
In the configuration of M5Burner I tried both Start Mode = Internet Mode and App Mode.Thanks in advance.
-
@javil When you run a program stored on the M5Stick you need to add WIFI access to you program otherwise wifi will not be loaded as your program will be loaded instead of the built in loader program.
-
@ajb2k3 Thanks for the answer. How can I do that? Is it just adding some lines of python at the beginning of the program?
-
-
@felmue said in Wifi stops working after Downloading program:
Hello @Javil
try adding something like the two first statements I used in this example.
Thanks
FelixYup noting more than the first couple of blocks is needed to activate Wifi.
-
Thanks! That worked perfectly :)