Traceback (most recent call last):
File "example_sub_multi.py", line 21, in <module>
File "example_sub_multi.py", line 14, in main
File "/home/frederik/Downloads/micropython-lib/umqtt.simple/umqtt/simple.py", line 104, in subscribe
AssertionError:
Having a look in the code shows that subscribe() is expecting the
answer of the second subscribe (0x90), but since the message of the
first subscribe arrived, the AssertionError is thrown. So,
uncommenting sleep_ms() and check_msg() results in a working
script.
Example script:
Running with mosquitto MQTT broker seems to work fine with:
However, having a retained message,
the start of the script fails with:
Having a look in the code shows that
subscribe()
is expecting the answer of the second subscribe (0x90), but since the message of the first subscribe arrived, theAssertionError
is thrown. So, uncommentingsleep_ms()
andcheck_msg()
results in a working script.@pfalcon: This is a bug or by intention?