diff --git a/playbooks/files/scripts/mqtt_srv.py b/playbooks/files/scripts/mqtt_srv.py index a430b0a..3b76384 100644 --- a/playbooks/files/scripts/mqtt_srv.py +++ b/playbooks/files/scripts/mqtt_srv.py @@ -2,6 +2,11 @@ from asyncio.log import logger import paho.mqtt.client as mqtt +try: + client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1) +except: + client = mqtt.Client() + from getmac import get_mac_address import platform import socket