def _on_message(self, client, userdata, msg): topic = msg.topic payload = msg.payload.decode("utf-8") MQTT_Base._on_message(self, topic, payload, msg.retain, msg.qos)
def _on_message(self, client, topic, payload, qos, properties): #topic = msg.topic #payload = msg.payload.decode("utf-8") MQTT_Base._on_message(self, topic, payload, False, qos)