{ "schema":"https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json", "profile":{ "productKey":"a1pkcDf0Xv0" }, "services":[ { "outputData":[ ], "identifier":"set", "inputData":[ { "identifier":"PowerSwitch", "dataType":{ "specs":{ "0":"关闭", "1":"开启" }, "type":"bool" }, "name":"电源开关" } ], "method":"thing.service.property.set", "name":"set", "required":true, "callType":"async", "desc":"属性设置" }, { "outputData":[ { "identifier":"PowerSwitch", "dataType":{ "specs":{ "0":"关闭", "1":"开启" }, "type":"bool" }, "name":"电源开关" }, { "identifier":"Counter", "dataType":{ "specs":{ "min":"0", "max":"99999", "step":"1" }, "type":"int" }, "name":"计数器演示" } ], "identifier":"get", "inputData":[ "PowerSwitch", "Counter" ], "method":"thing.service.property.get", "name":"get", "required":true, "callType":"async", "desc":"属性获取" }, { "outputData":[ { "identifier":"Result", "dataType":{ "specs":{ "min":"1", "max":"10000000", "step":"1" }, "type":"int" }, "name":"计算结果" } ], "identifier":"Operation_Service", "inputData":[ { "identifier":"NumberA", "dataType":{ "specs":{ "min":"0", "max":"1000000", "step":"1" }, "type":"int" }, "name":"数值A" }, { "identifier":"NumberB", "dataType":{ "specs":{ "min":"1", "max":"1000000", "step":"1" }, "type":"int" }, "name":"数值B" } ], "method":"thing.service.Operation_Service", "name":"数值计算服务演示", "required":false, "callType":"sync" } ], "properties":[ { "identifier":"PowerSwitch", "dataType":{ "specs":{ "0":"关闭", "1":"开启" }, "type":"bool" }, "name":"电源开关", "accessMode":"rw", "required":false }, { "identifier":"Counter", "dataType":{ "specs":{ "min":"0", "max":"99999", "step":"1" }, "type":"int" }, "name":"计数器演示", "accessMode":"r", "required":true } ], "events":[ { "outputData":[ { "identifier":"PowerSwitch", "dataType":{ "specs":{ "0":"关闭", "1":"开启" }, "type":"bool" }, "name":"电源开关" }, { "identifier":"Counter", "dataType":{ "specs":{ "min":"0", "max":"99999", "step":"1" }, "type":"int" }, "name":"计数器演示" } ], "identifier":"post", "method":"thing.event.property.post", "name":"post", "type":"info", "required":true, "desc":"属性上报" }, { "outputData":[ { "identifier":"ErrorCode", "dataType":{ "specs":{ "0":"故障类型0", "1":"故障类型1", "2":"故障类型2" }, "type":"enum" }, "name":"故障编号" } ], "identifier":"HardwareError", "method":"thing.event.HardwareError.post", "name":"故障事件演示", "type":"error", "required":false } ] }