def on_disconnect(self, client, userdata, rc):
self.is_connected = False
Log.info("[Exiting] Disconnected: %s", mqtt.error_string(rc))
self.client.loop_stop()
sys.exit(-1)
# The callback for when the client receives a CONNACK response from the server.
#@staticmethod
评论列表
文章目录