paho.mqtt.python icon indicating copy to clipboard operation
paho.mqtt.python copied to clipboard

Can subscribe.simple accept a list of topics and return a list of values?

Open optio50 opened this issue 3 years ago • 0 comments

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)

optio50 avatar Feb 11 '22 23:02 optio50