Upload program to M5
Hi. I have successfully made a program on UIFlows using wifi connection and the API-key. I press the "play" button in the UIFlow and the program executes. But when I remove power and reboot the M5Stack the program is gone. I have tried the "download" in the UIFlow menu that makes the M5 screen say "upload", but I end up with the same and the M5 shows the API key and the QR-code. What should I do to make my program stick to the M5 and execute after inital bootup?
lukasmaximus last edited by
@tnesheim very cool, could you share the code with us? I'm still trying to figure out how to use the http request blocks. I've heard this is an issue also with programs with the remote blocks too where the downloaded version doesn't work with the internet connection part. Did you do the wifi setup procedure in blocks? as in this forum post
tnesheim last edited by tnesheim
I'll post a screen dump of my blocks/code tonight. I used the code generator; https://www.blitter.se/utils/basic-authentication-header-generator/ to generate a key to insert in the header instead of using explisit username/password.
Aha...of course, I need to set up the wifi in the program itself:-) I'll definitely try that when I get home.
Also, in respect of making my program "stick" it could be a problem that I use the web connection? I should probably make the USB-connection work with my desktop version of UIFlow?
Yes, switching to USB connection made the program "stick". Attached is a snapshot of my M5-to-HC2 block:
ajb2k3 last edited by
@tnesheim The QR code is pointing to the webpage created in your code that is hosted on a temp server on the UIFlow Server.