paho.mqtt.python
paho.mqtt.python copied to clipboard
Can subscribe.simple accept a list of topics and return a list of values?
Can "subscribe.simple" accept a list and return a list?
I am not able to have a list returned when a list is subscribed to
topic = ["$SYS/broker/connection/raspberrypi.test-mosquitto-org/state", "$SYS/broker/connection/raspberrypi.br-home"]
print(topic)
msg = subscribe.simple(topic, msg_count=2, hostname="test.mosquitto.org")
print(msg.payload)