小程序无需编程即可体验 IoT 物联网平台 - IoT 模型开发
最编程
2024-03-11 15:17:29
...
{
"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": "-20",
"max": "80",
"step": "0.1"
},
"type": "float"
},
"name": "温度"
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%",
"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": "-20",
"max": "80",
"step": "0.1"
},
"type": "float"
},
"name": "温度"
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%",
"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": "属性获取"
},
{
"outputData": [],
"identifier": "switch",
"inputData": [
{
"identifier": "status",
"dataType": {
"specs": {
"length": "48"
},
"type": "text"
},
"name": "开关"
}
],
"method": "thing.service.switch",
"name": "开灯",
"required": false,
"callType": "async"
}
],
"properties": [
{
"identifier": "temperature",
"dataType": {
"specs": {
"unit": "°C",
"min": "-20",
"max": "80",
"step": "0.1"
},
"type": "float"
},
"name": "温度",
"accessMode": "rw",
"required": true
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%",
"min": "0",
"max": "100",
"step": "0.1"
},
"type": "float"
},
"name": "湿度",
"accessMode": "rw",
"required": true
}
],
"events": [
{
"outputData": [
{
"identifier": "temperature",
"dataType": {
"specs": {
"unit": "°C",
"min": "-20",
"max": "80",
"step": "0.1"
},
"type": "float"
},
"name": "温度"
},
{
"identifier": "humidity",
"dataType": {
"specs": {
"unit": "%",
"min": "0",
"max": "100",
"step": "0.1"
},
"type": "float"
},
"name": "湿度"
}
],
"identifier": "post",
"method": "thing.event.property.post",
"name": "post",
"type": "info",
"required": true,
"desc": "属性上报"
},
{
"outputData": [
{
"identifier": "temperature",
"dataType": {
"specs": {
"unit": "°C",
"min": "0",
"max": "10000",
"step": "0.1"
},
"type": "float"
},
"name": "温度"
}
],
"identifier": "hotAlarm",
"method": "thing.event.hotAlarm.post",
"name": "温度过高报警",
"type": "alert",
"required": false,
"desc": "温度过高报警"
}
]
}
上一篇: 磁控溅射工艺概述