Hi,
I wish to subscribe ( as in "regular" Python ) to several topics, when # as wildcard will not solve, for example:
Home/Windows/#
Home/Light/#
but not to :
Home/# ( which includes many more ).
In Python a list of topics can be defined as TOPICS=[(top1,qos1),(top2,qos2)]
Using same method in MicroPython does not apply.
Any leads?
MQTT Multi-Topic subscribe
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: MQTT Multi-Topic subscribe
You can answer these questions by taking a look at the source code and by examining the examples provided. It's a "micro" implementation. You need to issue a subscribe command for each topic.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: MQTT Multi-Topic subscribe
Hi,
Thank you for answering.
Didnot see in examples multiple subscriptions- but I'll give it a try.
Guy
Thank you for answering.
Didnot see in examples multiple subscriptions- but I'll give it a try.
Guy