Download OpenAPI specification:Download
thingId required | string 设备ID |
propertyName required | string 属性名称 |
productBase | Array of strings Default: ["false"]
|
tmMethod | string
|
msgId | string 消息ID |
productId | Array of strings Default: ["false"] 产品ID |
retrunSchema | boolean Default: false 是否返回schema |
{- "data": {
- "temperature": 21
}, - "schema": {
- "temperature": "参考WoT TD规范"
}
}
thingId required | string 设备ID |
propertyName required | string 属性名称 |
empty | boolean |
object | |
property name* | object |
所设置属性的类型为String
{- "msgId": "消息ID",
- "productBase": "产品库代号",
- "productId": "产品ID",
- "tmMethod": "可选,物映射实现方式",
- "data": "xxx",
- "extras": {
- "a": "xxx",
- "b": "xxx"
}
}
"string"
thingId required | string 设备ID |
productBase | Array of strings Default: ["false"]
|
tmMethod | string
|
msgId | string 消息ID |
productId | Array of strings Default: ["false"] 产品ID |
propertyNames | Array of strings 需读取的属性名称列表,以半角逗号分隔,为空则默认读取所有属性 |
retrunSchema | boolean Default: false 是否返回schema |
{- "data": {
- "temperature": 21,
- "humidity": 50,
- "led": true
}, - "schema": {
- "temperature": "#参考WoT TD规范",
- "humidity": "#参考WoT TD规范",
- "led": "#参考WoT TD规范"
}
}
thingId required | string 设备ID |
empty | boolean |
object | |
property name* | object |
{- "msgId": "消息ID",
- "productBase": "产品库代号",
- "productId": "产品ID",
- "tmMethod": "可选,物映射实现方式",
- "data": {
- "注释": "JSON对象,键为属性名,值为设置的属性值",
- "propertyA": "xxx",
- "propertyB": "xxx"
}, - "extras": {
- "注释": "JSON对象,传递给TM实现的额外信息",
- "a": "xxx",
- "b": "xxx"
}
}
"string"
thingId required | string 设备ID |
empty | boolean |
object | |
property name* | object |
{- "msgId": "消息ID",
- "productBase": "产品库代号",
- "productId": "产品ID",
- "tmMethod": "可选,物映射实现方式",
- "data": [
- {
- "注释": "JSON数组,数组元素为对象,对象含一个键值对,键为属性名,值为设置的属性值"
}, - {
- "propertyA": "xxx"
}, - {
- "propertyB": "xxx"
}
], - "extras": {
- "注释": "JSON对象,传递给TM实现的额外信息",
- "a": "xxx",
- "b": "xxx"
}
}
"string"
thingId required | string 设备ID |
msgId | string 消息ID |
tmMethod | string 物映射实现方式 |
productBase | Array of strings Default: ["false"] 产品库代号 |
productId | Array of strings Default: ["false"] 产品ID |
透传内容,目前只支持JSON对象或数组,内部数据结构视物映射实现而定
"string"
thingId required | string 设备ID |
actionName required | string 动作名称 |
empty | boolean |
object | |
property name* | object |
{- "msgId": "消息ID",
- "productBase": "产品库代号",
- "productId": "产品ID",
- "needResponse": "是否需要返回,默认false",
- "tmMethod": "可选,物映射实现方式",
- "input": {
- "注释": "入参JSON对象,键为参数名,值为参数值",
- "temperature": 21,
- "humidity": 50,
- "led": true
}, - "extras": {
- "注释": "JSON对象,传递给TM实现的额外信息",
- "a": "xxx",
- "b": "xxx"
}
}
{- "output": {
- "temperature": 21
}, - "schema": {
- "xxx": "参考WoT TD规范"
}
}
thingId required | string 设备ID |
productBase | Array of strings Default: ["false"]
|
{- "channelId": "xxx",
- "thingId": "xxx",
- "online": true,
- "time": "1642996559000"
}