腾讯云
UA71M12JIE.iotcloud.tencentdevices.com
MQTT服务器地址:UA71M12JIE.iotcloud.tencentdevices.com
秘钥认证端口号:1883
设备名称:Sensor
产品ID:UA71M12JIE
设备密钥:F3gLeeP62pE6Zno3P9486g==
ProductID(产品ID):UA71M12JIE
UserName:UA71M12JIESensor;12010126;564ST;1974703614
Password:8f6e6b8f22ae7009de93f6072806a1663fc93bab9b9f0e5263c841ce48b0f9c1;hmacsha256
属性发布主题:$thing/up/property/UA71M12JIE/${deviceName}
属性订阅主题:$thing/down/property/UA71M12JIE/${deviceName}
阿里云
https://help.aliyun.com/document_detail/140507.html?spm=a2c4g.30528.0.0.36d03226fwKDEK
MQTT服务器地址:iot-06z00bw411v8sfl.mqtt.iothub.aliyuncs.com
秘钥认证端口号:1883
UserName:Temperature01&inzpUtrH0d4
Password:e6880c3c7a37dfe01aad9f44177d09e9433165eb1e7b2230f7de7005181e6756
属性发布主题:/sys/inzpdn28klr/zigbee01/thing/event/property/post
属性订阅主题:/sys/inzpdn28klr/zigbee01/thing/service/property/set
AccessKey ID: LTAI5tBssMQePmGkrH8FuqJr
AccessKey Secret: 1OQlYQqT2mrh3cjeTCxNnBTRbU9jGT
AccessKey ID: LTAI5tFAq9H5PL2fGw3N4qRJ
AccessKey Secret: aCYoN1CoM1GSHitzir2by1vCEgV0Ap
登录密码: vRfqYDoITWFjBTa0Q(xR|I!1q8qy!gk6
{
"method":"thing.service.property.post",
"id":"858926847",
"params":{
"temp":11,
"light":2,
"humi":11,
"ghumi":1
},
"version":"1.0.0"
}
测试成功
获取值
自建
{productId} 代表产品ID, {deviceNum} 代表设备编号
订阅主题
/{productId}/{deviceNum}/info/get
/123/123/info/get
发布主题
/{productId}/{deviceNum}/info/post
/123/123/info/post
tcp://120.78.171.11:1883
#define USERCONF_MQTT_URL ("120.78.171.11:1883") //服务器地址:端口号
#define USERCONF_MQTT_USERNAME ("wengxiulin") //Username
#define USERCONF_MQTT_PASSWORD ("weng2001") //Password
#define USERCONF_MQTT_RECV_TOPIC ("/123/123/info/get") //属性订阅主题
#define USERCONF_MQTT_RECV_QOS (1)
#define USERCONF_MQTT_SEND_TOPIC ("/123/123/info/post") //属性发布主题
#define USERCONF_MQTT_SEND_QOS (1)
#define USER_UUID ("wengxiulin")
腾讯云
/* 远程服务器信息配置 */
#define USERCONF_MQTT_URL ("UA71M12JIE.iotcloud.tencentdevices.com:1883")
#define USERCONF_MQTT_USERNAME ("UA71M12JIESensor;12010126;564ST;1974703614")
#define USERCONF_MQTT_PASSWORD ("8f6e6b8f22ae7009de93f6072806a1663fc93bab9b9f0e5263c841ce48b0f9c1;hmacsha256")
#define USERCONF_MQTT_RECV_TOPIC ("$thing/down/property/UA71M12JIE/Sensor")
#define USERCONF_MQTT_RECV_QOS (1)
#define USERCONF_MQTT_SEND_TOPIC ("$thing/up/property/UA71M12JIE/Sensor")
#define USERCONF_MQTT_SEND_QOS (1)
#define USER_UUID ("UA71M12JIE")
8327e2102a5b8cc7
79CYBpUU9CCxpaMLTBusU9A0FDP9ApvaBIpW1iKxV2LLa2D