Skip to content

Commit 52303f9

Browse files
fix config URL
1 parent d78fd9a commit 52303f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DeviceManager/light_mqtt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@
99
from apscheduler.triggers.interval import IntervalTrigger
1010

1111
from .devices import LightSensor
12+
from .config import THINGSBOARD_URL
1213

1314

1415
class LightMqtt:
1516
"""
1617
Implementation of MQTT protocol to connect the device to the server.
1718
"""
1819

19-
_ip = "thingsboard.matthieu-rochette.fr"
20+
_ip = THINGSBOARD_URL
2021
_port = 1883
2122
_socketTimes = 1
2223

0 commit comments

Comments
 (0)