🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Atom Lite EspNow issue

    Cores
    1
    2
    2.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mchott
      last edited by

      I started with an ATOM Matrix and used very simple EspNow Communication. Then I adapted this to the smaller ATOM Lite but the easiest things won´t work.

      UI Flow + ATOM Lite + EspNow

      The serial monitor results in:
      Traceback (most recent call last):
      File "main.py", line 13, in <module>
      TypeError: function takes 1 positional arguments but 0 were given
      MicroPython 3a9581b5a-dirty on 2022-12-08; M5Stack with ESP32
      Type "help()" for more information.

      This is the code which works filne with my Matrix and not with the Lite

      from m5stack import *
      from m5ui import *
      from uiflow import *
      import espnow
      import wifiCfg
      
      addr = None
      data = None
      dataObj = None
      
      wifiCfg.wlan_ap.active(True)
      wifiCfg.wlan_sta.active(True)
      espnow.init()
      
      espnow.broadcast(data=str(((str('OnAir-') + str((espnow.get_mac_addr()))))))
      

      It hang up with the espnow.init()

      1 Reply Last reply Reply Quote 0
      • M
        mchott
        last edited by

        For me, the issue is resolved, but not quite with an eye to the future. I had the UI Flow IDE on the desktop 1.9.5 ( there is unfortunately not newer) and on the Atom Lite I had the 1.11.0. Thereby it came to incompatibilities that the EspNow in the newer variant works quite differently. BADLY.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post