Ver Fonte

上傳檔案到 ''

allen há 4 anos atrás
pai
commit
a154fd2082
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      aisky-mqttd

+ 2 - 2
aisky-mqttd

@@ -67,7 +67,7 @@ camera_zoomout = "http://169.254.185.181/cgi-bin/ptz_cgi?action=ZoomSub&user=adm
 #php path
 picture_path = 'http://60.250.156.234/cust/c1.php'
 
-reboot_path ="http://www.aisky.com.tw/field/BBtoCaveat.php"
+reboot_path ="http://www.aisky.com.tw/field/status.php"
 #log
 
 # @var mqtt_sub_topic  The MQTT topic to subscribe to.
@@ -734,7 +734,7 @@ def on_connect(client, userdata, flags, rc):
     client.subscribe(mqtt_sub_topic, qos=2)
     server_log('a035', '1')
     logging.info('system running')
-    data = {'nr': nr, 'caveat': 'reboot'}
+    data = {'nr': nr, 'status': 'reboot'}
     data = urllib.parse.urlencode(data)
     data = data.encode('utf-8')
     req = urllib.request.Request(reboot_path, data)