欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

通过微信小程序体验阿里云IoT物联网平台

最编程 2024-03-20 16:38:27
...
{ "schema": "https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json", "profile": { "productKey": "替换为你的productKey" }, "services": [ { "outputData": [], "identifier": "set", "inputData": [ { "identifier": "temperature", "dataType": { "specs": { "unit": "°C", "min": "0", "max": "1000", "step": "0.1" }, "type": "float" }, "name": "温度" }, { "identifier": "humidity", "dataType": { "specs": { "unit": "%RH", "min": "0", "max": "100", "step": "0.1" }, "type": "float" }, "name": "湿度" } ], "method": "thing.service.property.set", "name": "set", "required": true, "callType": "async", "desc": "属性设置" }, { "outputData": [ { "identifier": "temperature", "dataType": { "specs": { "unit": "°C", "min": "0", "max": "1000", "step": "0.1" }, "type": "float" }, "name": "温度" }, { "identifier": "humidity", "dataType": { "specs": { "unit": "%RH", "min": "0", "max": "100", "step": "0.1" }, "type": "float" }, "name": "湿度" } ], "identifier": "get", "inputData": [ "temperature", "humidity" ], "method": "thing.service.property.get", "name": "get", "required": true, "callType": "async", "desc": "属性获取" } ], "properties": [ { "identifier": "temperature", "dataType": { "specs": { "unit": "°C", "min": "0", "max": "1000", "step": "0.1" }, "type": "float" }, "name": "温度", "accessMode": "rw", "required": false }, { "identifier": "humidity", "dataType": { "specs": { "unit": "%RH", "min": "0", "max": "100", "step": "0.1" }, "type": "float" }, "name": "湿度", "accessMode": "rw", "required": false } ], "events": [ { "outputData": [ { "identifier": "temperature", "dataType": { "specs": { "unit": "°C", "min": "0", "max": "1000", "step": "0.1" }, "type": "float" }, "name": "温度" }, { "identifier": "humidity", "dataType": { "specs": { "unit": "%RH", "min": "0", "max": "100", "step": "0.1" }, "type": "float" }, "name": "湿度" } ], "identifier": "post", "method": "thing.event.property.post", "name": "post", "type": "info", "required": true, "desc": "属性上报" } ] }

推荐阅读