Iot Explorer (腾讯物联网开放平台)

# 简介 腾讯云物联网开发平台(IoT Explorer)为各行业的设备制造商、方案商及应用开发商提供一站式设备智能化服务。平台提供海量设备连接与管理能力及小程序应用开发能力,并打通腾讯云基础产品及 AI 能力,提升传统行业设备智能化的效率,降低用户的开发运维成本,助力用户业务发展。 文章介绍LuatOS-Air连接腾讯云,支持自动注册,自动识别秘钥认证与证书认证两种认证方式。 # 实现流程 ## 产品操作 打开腾讯云,进入控制台选择物联网开发平台进入。(记住是物联网开发平台不是物联网通信)[物联网开放平台](https://console.cloud.tencent.com/iotexplorer "物联网开放平台") ![undefined](https://cdn.openluat-luatcommunity.openluat.com/images/20210111112017790_txiot1.png "undefined") 点击新建项目 ![undefined](https://cdn.openluat-luatcommunity.openluat.com/images/20210111112027234_txiot2.png "undefined") ![undefined](https://cdn.openluat-luatcommunity.openluat.com/images/20210111112034614_txiot3.png "undefined") ### 设备操作 进入项目点击新建产品,认证方式可选秘钥认证或证书认证 ![undefined](https://cdn.openluat-luatcommunity.openluat.com/images/20210111112043437_txiot4.png "undefined") 进入产品记住产品ID ![undefined](https://cdn.openluat-luatcommunity.openluat.com/images/20210111112053276_txiot5.png "undefined") 拉倒最下方打开动态注册并记住ProductSecret ![undefined](https://cdn.openluat-luatcommunity.openluat.com/images/20210111112727878_txiot6.png "undefined") ### LuatOS-Air操作 打开luatoolsV2\resource\8910_script\script_LuaTask_V2.4.2\demo\txiot ,demo中的txiot 将ProductId改为自己的产品ID 将ProductSecret改为自己的产品动态注册秘钥 ![undefined](https://cdn.openluat-luatcommunity.openluat.com/images/20210111113150789_txiot7.png "undefined") 下载脚本即可 [SOCKETAPI说明](https://doc.openluat.com/wiki/21?wiki_page_id=2294) # 常见问题 ## 第二次下载脚本后注册失败 因为腾讯云注册流程第一次注册之后将不会返回注册秘钥,下载脚本会清除本地保存的注册秘钥导致注册失败,OTA不受影响 ### MQTT链接腾讯云 , 不断的重连 确认一下是不是时间戳不对导致的,腾讯云注册是需要时间戳的