|
@@ -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()
|
|
|
|