Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. rousveiga
    R
    • Continue chat with rousveiga
    • Start new chat with rousveiga
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    rousveiga

    @rousveiga

    0
    Reputation
    3
    Posts
    673
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    rousveiga Follow

    Posts made by rousveiga

    • RE: Can't instantiate MQTT class (M5 Stick C Plus with Micropython)

      @sodoku I see! I'll try that code. Thank you!

      posted in Micropython
      R
      rousveiga
    • Can't instantiate MQTT class (M5 Stick C Plus with Micropython)

      Hello! I have a small MicroPython program running on my M5 Stick C Plus (with UI Flow firmware version 1.6.5.1-plus, as I get screen errors with 1.6.6-plus) and I wanted to add MQTT communication. I was following loboris' documentation and examples. However, I get the following error:

        File "main.py", line 289, in <module>
      AttributeError: 'module' object has no attribute 'mqtt'
      MicroPython 7021d9419-dirty on 2020-10-30; M5StickC-Plus with ESP32
      

      Line 289 looks as follows (I imported network earlier in the code):

      client = network.mqtt(NAME, SERVER, user="mosquitto", password="mosquitto", cleansession=True, connected_cb=conncb, disconnected_cb=disconncb, subscribed_cb=subscb, published_cb=pubcb, data_cb=datacb)
      

      I'm completely dumbfounded, as the same method call appears in the M5 Cloud MQTT example. Does anybody know what could be causing this behavior?

      Thanks in advance,

      Rosa

      posted in Micropython
      R
      rousveiga
    • RE: ERROR 22 Bat Vol error

      @m5stack Hello! I have the same issue. Charging the battery did not fix the problem for me (and it doesn't seem to be charged since the screen won't light up unless the device is USB powered).

      posted in M5 Stick/StickC
      R
      rousveiga