Edited It works, I don't know why but the gray unit display works without problem after flashing and the black one requires a press of a button to come alive.
BR / Fernando
@salty_good thanks, but I'm developing a little client in python that will connect to several wifi networks. The idea is to publish a different message via MQTT depending of the wifi it has connected to. I need to do it in python, maybe I can import a different library that gives me more options than wifisetup.
Hello, as the title of this thread says, I need to perform specific actions depending of the SSID name. Any help with wifisetup? Thanks a lot!
Just a little comment. I've used this code to have a tiny watch on a M5stick and it did not work till I added the connection to internet. So the code in my case looks like this:
from m5stack import *
from m5ui import *
and then the rest of the code is similar, changing timezone and whatnot.
Thanks for the code and best regards / Fernando
@ajb2k3 Yes, I knew about it. But I think that @hkubota was after is a little different. Maybe to have a way to start designing the ui of the app in UIFlow and then add specific functions in python editor. At least this is what I'm doing. So it would be good to be able to save the blocks and the code separately, and then you can either apply the changes (like a file diff) or not.
Thanks for your help @ajb2k3!
@hkubota What I'd prefer is to keep track of the changes in the code and that they appear in a different color. A text file with the changes to be applied can be saved together with the blocks code. Then you have a button to either apply the changes, so they appear in the python code in a different color and numbered so you can verify that all of them are in place, or you can choose to remove them to see the blocks code translated to Python for debugging purposes. Does it make sense?
Best regards / Fernando
@ajb2k3 nope, f3rn4nd0d in youtube
You are welcome :)
Ok, I go second then :)
My name is Fernando and I live in Spain. I have taken some time off but I use to write on several Spanish blogs. You can find an article about M5Stack here in Xataka Home. I'm currently using UiFlow and I'm starting to like it a lot, although I am used to program ESP8266 and ESP32 devices using Arduino and C is my favourite language.
Now I'm working to integrate Blynk with it for revisiting a project of mine and see if I can make it work better.
Looks like your connection to M5Stack Community was lost, please wait while we try to reconnect.