https://github.com/peterhinch/micropyth ... nchmark.py
however I get:
Code: Select all
micropython benchmark.py
Connected to mqtt.blabla.net, subscribed to b'test/test' topic
Traceback (most recent call last):
File "benchmark.py", line 89, in <module>
File "benchmark.py", line 86, in main
File "benchmark.py", line 84, in main
File "/usr/lib/micropython/umqtt/simple.py", line 203, in check_msg
NotImplementedError:
Code: Select all
def check_msg(self):
self.sock.setblocking(False)
return self.wait_msg()
Code: Select all
def wait_msg(self):
res = self.sock.read(1)
self.sock.setblocking(True)
My version on OpenWrt is the following:
Code: Select all
# micropython -v
MicroPython v1.9.4 on 2022-06-19; linux version
Can I have a non blocking subscribe on MQTT??