Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paho.mqtt.client as mqtt
- client = mqtt.Client("I am your client")
- if self._max_queued_messages > 0 and len(self._out_messages) >= self._max_queued_messages:
- message.info.rc = MQTT_ERR_QUEUE_SIZE
- return message.info
Add Comment
Please, Sign In to add comment