下面针对一个测试设备,运用该软件发送信息
1.首先给出软件下载地址Index of /apps/mqttfx/1.7.1
2、配置
下面给出相应的账号密码:
{ ? "ProductKey": "a1OG8PnPnYW", ? "DeviceName": "device_test_1", ? "DeviceSecret": "de26e5c0e54d6f55bb1cb37dd884df31" } ProductSecret:BVCsVjcElfTWReGF MQTT连接参数 clientId a1OG8PnPnYW.device_test_1|securemode=2,signmethod=hmacsha256,timestamp=2524608000000| username device_test_1&a1OG8PnPnYW passwd 86431688a9d76ed3a304d8c9ac1d4c150b3f1b4f95be0e577aaf752f7ece426e mqttHostUrl a1OG8PnPnYW.iot-as-mqtt.cn-shanghai.aliyuncs.com port 1883
应用这些数据按照图片输入
?
?然后点击连接平台:
?发布地址:/sys/a1OG8PnPnYW/device_test_1/thing/event/property/post
输入 发布内容如下
{ "method":"thing.event.property.post",?? ??? ??? ??? ? "id":"123",?? ??? ??? ??? ? "version": "1.0",?? ??? ??? ? "sys":{"ack":1},?? ??? ? "params":{"LightVolt":{"value": 0}}?? ??? ??? ? }
这里的value对应的值就是需要上传到阿里云的值
?最后在物模型里面就可以看到上传的值了
?
?
|