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 |
1 reply
|
I haven't tried it personally, but you could try invoking |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
All reactions