This shows you the differences between two versions of the page.
priot:laboratoare:06 [2024/11/14 21:16] jan.vaduva [Exemplu de cod pentru Abonare pe Laptop utilizând paho-mqtt] |
priot:laboratoare:06 [2024/11/19 02:49] (current) alexandru.bala [Exemplu de cod pentru Abonare pe Laptop utilizând paho-mqtt] |
||
---|---|---|---|
Line 150: | Line 150: | ||
<note>In case you experience issues with Paho MQTT Client Callback Version, try the following approach: | <note>In case you experience issues with Paho MQTT Client Callback Version, try the following approach: | ||
<code> | <code> | ||
- | client = mqtt_client.Client(mqtt_client.CallbackAPIVersion.VERSION1) | + | client = mqtt_client.Client(client_id = client_id, callback_api_version = mqtt_client.CallbackAPIVersion.VERSION1) |
</code> | </code> | ||
</note> | </note> |