umqtt.simple check_msg() error #11203
Replies: 4 comments 6 replies
-
I’m slightly confused about what you’re describing here. Which debug node is the node-red output from (and what is the full content of the message tree?). Which one is line 16 and/or line 144 in the MicroPython code? i.e. where are you providing too many arguments? |
Beta Was this translation helpful? Give feedback.
-
I don't recognise |
Beta Was this translation helpful? Give feedback.
-
The way to install official library modules is with mip. It's hard for us to support unofficial modules: it requires us to study the documentation and code. In my view support queries should be directed to the module author. Unless, of course, the author has a presence here. |
Beta Was this translation helpful? Give feedback.
-
Hi All, I didn't really look at the origin of simple2, As it shows up as an option I assumed that it was an official release just a version 2 of the original umqtt.simple. will pay more attention to it next time. Best Regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
I'm using umqtt.simple to publish and subscribe to a topic as a test and can't get it to work.
The broker I'm using is the broker on Node-red Aedes.
the publish part was working fine, but I can't get the subscribe part to work.
this is what I get on the debug window for node-red:

code for the loop using check message:
`
client = connectMQTT()
mySubscribe(client, "getCurrent")
count = 0
while(1):
client.check_msg()
#mypublish(client, "bat/current", str(getADCvalue(0)))
utime.sleep(1)
#count += 1`
code for the callback and the subscribe function:
I know this is a bit messy, but this is my test code and I been modifying it to try to get it workin, it should work. I omitted the connection part.
This is the error I get on the pico W side in Thonny:
As far as I can see, I'm not doing anything that different from the examples I have seen, so I'm a bit stuck. I also have a subscriber on Node-red for the same topic and it works fine.
Any help would be appreciated.
Thank you.
Best Regards
EngineBeat.
Beta Was this translation helpful? Give feedback.
All reactions