Skip to content

Commit

Permalink
!fix: specifying the paho-mqtt API version
Browse files Browse the repository at this point in the history
~ Speficy "mqtt.CallbackAPIVersion.VERSION2" on Client; not sure if this will fix it...
  • Loading branch information
fetzu authored Feb 11, 2024
1 parent be3bd0f commit 0fbf68b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion teslamate_mqtt2abrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def niceNow():

## [ MQTT ]
# Initialize MQTT client and connect
client = mqtt.Client(f"teslamateToABRP-{CARNUMBER}")
client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION2, f"teslamateToABRP-{CARNUMBER}")
if MQTTUSERNAME is not None:
if MQTTPASSWORD is not None:
logging.debug("Using MQTT username: {} and password '******'".format(MQTTUSERNAME))
Expand Down

0 comments on commit 0fbf68b

Please sign in to comment.