Commit d03a6c2d authored by 簡碩辰's avatar 簡碩辰

Update run.py

parent 6d92d185
......@@ -41,7 +41,7 @@ while True:
port = os.getenv("MQTT_PORT")
if TryConnect(host, port): # 測試連線到 MQTT
if TryConnect('MQTT', host, port): # 測試連線到 MQTT
client = MQTT()
client.connect(host, int(port), 3600)
......@@ -50,7 +50,7 @@ while True:
port = os.getenv("ED_PORT")
if TryConnect(host, port): # 測試連線到 EasyDarwin
if TryConnect('EasyDarwin', host, port): # 測試連線到 EasyDarwin
payload['host'] = host
rtsp_out = "rtsp://{0}:{1}".format(host, port)
......@@ -59,7 +59,7 @@ while True:
port = os.getenv("DVR_PORT")
if TryConnect(host, port): # 測試連線到 DVR
if TryConnect('DVR', host, port): # 測試連線到 DVR
payload['name'] = name
payload['ch'] = ch
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment