【第二期】学会接口,感知万物数据---【IoT在线训练营】
总的来看其实就是用postman做三步就可以解决的了;
第一步:
Ps:https://49.4.92.x:8743/iocm/app/sec/v1.1.0/login ip地址从下面拿
然后就可以保存其中的信息:
{
"accessToken": "2db2ac3137c4208479a7a25b41925c1",
"tokenType": "bearer",
"refreshToken": "77d6dcd5798ca73248ee38e994a65565",
"expiresIn": 3600,
"scope": "default"
}
第二步:https://49.4.92.191:8743/iocm/app/reg/v1.1.0/deviceCredentials
要用到的代码:
{
"verifyCode": "33343R232111",
"nodeId": "33343R232111",
"deviceInfo": {
"manufacturerName":"SZMC",
"manufacturerId":"c24eaf1eb93b466faf5cbfcd9d3ab569",
"deviceType":"Bulb",
"model":"Bulb01",
"protocolType":"LWM2M"
},
"timeout": 0
}
保存要用到的信息:
{
"deviceId": "00aee60d-6805-477d-9d16-35a9554224c7",
"verifyCode": "1bcfef6e-4df7-4492-8017-0a31fc6d11ad",
"timeout": 0,
"psk": "d6979b50ebf2fbd37316729ef832e4fc"
}
最后一步:核心的部分在于要把虚拟设备激活起来(https://ilearningx.huawei.com/courses/course-v1:HuaweiX+EBGTC00000285+2019.4/courseware/5558aecf537f459a825e8fe5669a3305/43ff829db0c44801a2c9bf17b345b1b3/),用起来,然后把虚拟设备的ID写上去:
总操作参见视频:https://ilearningx.huawei.com/courses/course-v1:HuaweiX+EBGTC00000285+2019.4/courseware/d4fc74323bce40e3a34bf67e76f56f2d/9402024ae61c496ea6f20e4abc15cd71/
详细可以看附件的word版本;
- 点赞
- 收藏
- 关注作者
评论(0)