|
@@ -87,6 +87,13 @@ class IotCoreView(View):
|
|
|
thing_name=res[1]['ThingName'],
|
|
|
token_iot_number=token_iot_number
|
|
|
)
|
|
|
+ res = {
|
|
|
+ 'certificateId': res[0]['certificateId'],
|
|
|
+ 'certificatePem': res[0]['certificatePem'],
|
|
|
+ 'publicKey': res[0]['publicKey'],
|
|
|
+ 'privateKey': res[0]['privateKey'],
|
|
|
+ 'endpoint': res[0]['endpoint']
|
|
|
+ }
|
|
|
return response.json(0, {'res': res})
|
|
|
else:
|
|
|
|