Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. mm-uiflow
    3. Posts
    M
    • Continue chat with mm-uiflow
    • Start new chat with mm-uiflow
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by mm-uiflow

    • RE: UIFlow 2.0.2 firmware preview version

      how is the status of this? is the update comming soon? is it stable yet?

      posted in Official Updates
      M
      mm-uiflow
    • RE: Crashes / exception with atomlite

      it fixed my problem with the crashes, but now i have no QoS 1

      posted in Micropython
      M
      mm-uiflow
    • RE: Crashes / exception with atomlite

      i found out when i set mqtt's QoS to 0. i have loops over 20k and higher. So no exceptions anymore ( it was memory alloc exception before).

      i want to use QoS 1. QoS 1 sends a message with a packet id see code below.
      What is the max interger value of micropython / uiflow? It seems like its crashing near the packetid value "65000"

      0_1657179246667_24e5b69c-a38a-4045-a11a-a8ae61635024-image.png

      posted in Micropython
      M
      mm-uiflow
    • RE: Atom always connects to AP with lowest signal ( 3 APs with same SSID)

      The APs have 2ghz and 5ghz: wifi.scan show them here. it connects always on the AP with 22851-Gast Channel 1 with has really bad rssi -91 and not with the one 22851-Gast channel 11.
      i think the logic needs to impore here. or i need do write a function which searches for the best one and connects to it.

      (b'Labor', b'X\xc1z\xe5a\xc0', 11, -52, 3, False), (b'Phone', b'X\xc1z\xe5a\xc1', 11, -52, 3, False), (b'22851-int', b'X\xc1z\xe5a\xc2', 11, -52, 3, False), (b'22851-Gast'\xe5jA', 6, -68, 3, False), (b'Phone', b'X\xc1z\xe5jB', 6, -69, 3, False), (b'22851-Gast', b'X\xc1z\xe5j@', 6, -70, 3, False), (b'22851-Gast', b'X\xc1z\xe5l\xf1', 11, -80, 22851-int', b'X\xc1z\xe5l\xf0', 11, -80, 3, False), (b'22851-int', b'\xbc\xe6|^\x9f\x10', 6, -91, 3, False), (b'22851-Gast', b'\xbc\xe6|^\x9f\x11', 6, -91, 3, False), (b'Ph^\x9f\x12', 6, -93, 3, False), (b'Lager', b'X\xc1z"\xae ', 11, -94, 3, False)]

      i tried to use "WLAN.connect(ssid=22851-Gast, password=dfsfs, *, bssid=b'X\xc1z\xe5l\xf1)" to connect to the bssid specific which good connection
      but this is not working it says to much arguments taken

      posted in Micropython
      M
      mm-uiflow
    • Crashes / exception with atomlite

      Hey guys, i have used "try" around my i2c loop and mqtt to get the error and try to recover from it. how ever struggeling to fix it( i heard from an alternative mqtt library but i wanted to know if you guys have another idea)
      Here you see my grafana graph. Loop gets increased after every "readvalues loop function" (mqtt )
      0_1655364569251_2022-06-16 09_14_00-.png
      After these about 3000 loops it resets.

      Here is the flow:
      0_1655364678135_c95cbf93-e82e-41c2-91f4-8c6ff657e379-image.png
      And this( bottom of the read values function) :
      0_1655364740486_c9a090e4-4732-476b-9702-d0a7bdbd4639-image.png

      Serial console:
      [9362069] MQTTException -> Server close socket link
      reconnect start ...
      reconnect finish ...
      [9366820] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9371201] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9376101] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9380496] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9385483] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9389926] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9394818] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9399401] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9404361] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9408826] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9413730] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9418185] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9423081] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9427470] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9432469] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      [9437051] MQTTException -> -110
      reconnect start ...
      reconnect finish ...
      rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

      [9365685] MQTTException -> Server close socket link
      reconnect start ...
      rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

      i get -104 mqtt exception and -110. i dont get to except it and try to stop the mqtt, wait a sec and start again. The wifi signal is good and its 1 m to the AP on this Atom ( not like in the other thread)

      0_1655364913415_665a6fa0-0928-4cfc-84a8-01f63193872d-image.png

      posted in Micropython
      M
      mm-uiflow
    • Atom always connects to AP with lowest signal ( 3 APs with same SSID)

      Any one have an idea for a solution?

      I found this thread https://esp32.com/viewtopic.php?t=18979
      its about the checkwifi function which may help but thats not micropython

      posted in Micropython
      M
      mm-uiflow
    • RE: M5stack fails to connect with blynk

      I created a timer 0_1654770167257_78ecc3dc-435e-4d07-a135-6f5c94cdf6df-image.png

      and every 500 ms its called. still no connection
      0_1654770247174_2ad3dece-a7b0-4eb3-ac41-b5caaa4d6822-image.png

      in Debug i see the prints start and loop :
      0_1654770280796_7b0974e9-c326-4a24-9fcd-4870f941e47b-image.png

      i only used the AUTH_TOKEN, in bylnk cloud there are more things defined, you think this is the problem?
      0_1654770345513_601398db-347c-4abe-a3be-0289ca90284e-image.png

      posted in Micropython
      M
      mm-uiflow
    • M5stack fails to connect with blynk

      Hello guys, i tried to run blynk, but i canot connect my atomlite's to blynk. i tried port 8080, 443 and 80 but the devices doesnt shows up in blynk as Online here is my configuration
      0_1654723263901_af189eed-724f-4479-a0c8-6b3d80319e5c-image.png

      print('Start')
      wlan = network.WLAN(network.STA_IF)
      blynk1 = blynk.Blynk(server='blynk.cloud', port=80, token='XXXX', heartbeat=30)
      blynk1.run()
      m5mqtt.start()

      Any ideas?

      posted in Micropython
      M
      mm-uiflow
    • RE: [fixed]atomlite 1.9.7 name 'wlan' isn't defined

      wlan = network.WLAN(network.STA_IF) is 0_1654418854491_a0cdea9b-ae52-4361-82e6-68b7f114500a-image.png

      i didnt used create station interface because of that wlan wasnt defined!

      posted in Micropython
      M
      mm-uiflow
    • RE: [fixed]atomlite 1.9.7 name 'wlan' isn't defined

      @felmue said in atomlite 1.9.7 name 'wlan' isn't defined:

      wlan = network.WLAN(network.STA_IF)
      print(wlan.ifconfig())

      if i just use the python code like you it works. Maybe i should create a custom block for that

      posted in Micropython
      M
      mm-uiflow
    • [fixed]atomlite 1.9.7 name 'wlan' isn't defined

      if i use the original network functions i get:

      Traceback (most recent call last):
      File "flow/m5cloud.py", line 82, in _exec_fun
      File "<string>", line 39, in <module>
      NameError: name 'wlan' isn't defined
      i want to check what ip adress etc is set.

      all original network functions dont work. Smart config the same

      posted in Micropython
      M
      mm-uiflow