rabin 8 vuotta sitten
vanhempi
commit
40663e9e82
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      service/device.py

+ 2 - 2
service/device.py

@@ -72,7 +72,7 @@ class Device(object):
 					# 这里要向服务器发送pub请求了,暂时使用临时文件代替
 					Demeter.temp(key=type_info['key'], name=info['hardware_id'], value=switch)
 					#pub
-					#pub = Pub()
+					pub = Pub()
 					key = 'update/' + type_info['key'] + '/' + gateway_info['hardware_id']  + '/' + info['hardware_id']
 					value = switch
-					#pub.push(key, value, 2)
+					pub.push(key, value, 2)