ESP8266 MQTTClient poll check. or wait.msg #12038
Replies: 2 comments 1 reply
-
No, not with You may be interested in a more sophisticated asynchronous MQTT client: https://github.com/peterhinch/micropython-mqtt/blob/master/mqtt_as/README.md |
Beta Was this translation helpful? Give feedback.
1 reply
-
I haven't tried it personally, but you could try invoking |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
Using ESP8266-12 and
from umqtt.robust import MQTTClient
From what I understand I have to explicit poll in a loop, for message, using client.check_msg() or client.wait_msg()
Are there any other implicit like background/ interrupt driven mechanism to activate the callnack: client.set_callback(sub_cb) ?
For ex for RasberryPye there are a mechanism for that:
import paho.mqtt.client as mqtt #import the client
client.loop_start()
Br /Stefan in the archipellago of Stockholm
Beta Was this translation helpful? Give feedback.
All reactions