| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201 |
- {
- "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
- }
- ]
- }
|