阿里云服务器地址(华东2):*.iot-as-mqtt.cn-shanghai.aliyuncs.com:1883 *表示自己账号的ProductKey注意替换
hmacsha1加密在线计算网站:http://encode.chahuo.com/
客户端ID: *|securemode=3,signmethod=hmacsha1| *是设备名称
用户名:*&# *是设备名称 #是ProductKey
密码:用DeviceSecret作为密钥对clientId*deviceName*productKey#进行hmascsha1加密后的结果 *是设备名称 #是ProductKey
例子:
三元组:
{
"ProductKey": "a1j9m7yBJVM",
"DeviceName": "kfb_demo",
"DeviceSecret": "Yoe1Jh7nq7aTaVmMy6S3eAKg3MS3lg9t"
}
a1j9m7yBJVM.iot-as-mqtt.cn-shanghai.aliyuncs.com:1883
客户端ID:kfb_demo|securemode=3,signmethod=hmacsha1|
用户名:kfb_demo&a1j9m7yBJVM
密码:ee5daadddde8ba940f83e582085408d04f035d6a
用Yoe1Jh7nq7aTaVmMy6S3eAKg3MS3lg9t作为密钥对clientIdkfb_demodeviceNamekfb_demoproductKeya1j9m7yBJVM进行hmascsha1加密后的结果
微信扫码关注
更新实时通知