Selaa lähdekoodia

物品名修复序列号全称

chenshibin 4 vuotta sitten
vanhempi
commit
0d4f62d32b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Controller/IotCoreController.py

+ 1 - 1
Controller/IotCoreController.py

@@ -72,7 +72,7 @@ class IotCoreView(View):
                 region_id = Device_Region().get_device_region(ip)
 
                 iotClient = IOTClient(region_id)
-                res = iotClient.create_keys_and_certificate(serial, thingGroup)
+                res = iotClient.create_keys_and_certificate(serial_number, thingGroup)
                 nowTime = int(time.time())
                 token_iot_number = hashlib.md5((str(uuid.uuid1()) + str(nowTime)).encode('utf-8')).hexdigest()