Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
886746bb
Commit
886746bb
authored
Sep 27, 2020
by
chen.weican
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改内容】更新主机的物模型文件
【提交人】陈伟灿
parent
90780351
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
892 additions
and
643 deletions
+892
-643
common/api/com_api.h
common/api/com_api.h
+20
-13
tsl/ccu-12.json
tsl/ccu-12.json
+436
-315
tsl/ccu-15.json
tsl/ccu-15.json
+436
-315
No files found.
common/api/com_api.h
View file @
886746bb
...
...
@@ -28,19 +28,26 @@ typedef enum {
IPC_UNDEF
}
ipc_type
;
#define MSG_TYPE_STR "msgtype"
#define MSG_PRODUCT_TYPE_STR "productType"
#define MSG_PRODUCT_CODE_STR "productCode"
#define MSG_DEVICE_CODE_STR "deviceCode"
#define MSG_PAYLOAD_STR "payload"
#define MSG_INFO_STR "info"
#define MSG_INDENTIFIER_STR "identifier"
#define MSG_PARAMS_STR "params"
#define MSG_IOTClOUDSTATE_STR "IOTCloudState"
#define MSG_TOPO_CHANGE_TYPE_STR "changeType"
#define MSG_TOPO_CHANGE_DEVICES_STR "devices"
#define MSG_DEVICE_MAC "mac"
#define MSG_DEVICE_PARENTCODE "parentCode"
#define MSG_TYPE_STR "msgtype"
#define MSG_PRODUCT_TYPE_STR "productType"
#define MSG_PRODUCT_CODE_STR "productCode"
#define MSG_DEVICE_CODE_STR "deviceCode"
#define MSG_PAYLOAD_STR "payload"
#define MSG_INFO_STR "info"
#define MSG_INDENTIFIER_STR "identifier"
#define MSG_PARAMS_STR "params"
#define MSG_IOTClOUDSTATE_STR "IOTCloudState"
#define MSG_TOPO_CHANGE_TYPE_STR "changeType"
#define MSG_TOPO_CHANGE_DEVICES_STR "devices"
#define MSG_DEVICE_MAC "mac"
#define MSG_DEVICE_PARENTCODE "parentCode"
#define MSG_AREA_ADDROOM_ROOMNAME "roomName"
#define MSG_AREA_ROOM_ROOMID "roomId"
#define MSG_AREA_ROOM_EPNUM "epNum"
#define MSG_AREA_ROOM_ACTION "action"
#define MSG_AREA_ADDROOM_NOTIFICATION "addRoomNotification"
#define MSG_AREA_ADDROOM_NOTIFICATION_ROOMID "addRoomNotification.roomId"
typedef
void
ipc_cb
(
void
*
data
,
int
len
,
char
*
chalMark
);
...
...
tsl/ccu-12.json
View file @
886746bb
{
"schema"
:
"https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json"
,
"productType"
:
"ccu"
,
"profile"
:{
"type"
:
"KONKE_ZIGBEE_CCU"
},
"properties"
:[
{
"identifier"
:
"SN"
,
"dataType"
:{
"specs"
:{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"Version"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
,
"accessMode"
:
"r"
,
"required"
:
false
}],
"services"
:[
{
"outputData"
:[
],
"identifier"
:
"set"
,
"inputData"
:[
],
"method"
:
"thing.service.property.set"
,
"name"
:
"set"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性设置"
},
{
"outputData"
:[
{
"identifier"
:
"SN"
,
"dataType"
:{
"specs"
:{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"get"
,
"inputData"
:[
"SN"
,
"MACAddress"
,
"LanIPAddress"
,
"WanIPAddress"
,
"IOTCloudState"
,
"Version"
],
"method"
:
"thing.service.property.get"
,
"name"
:
"get"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性获取"
},
{
"outputData"
:[
],
"identifier"
:
"restoreFactory"
,
"inputData"
:[
],
"method"
:
"thing.service.restoreFactory"
,
"name"
:
"restoreFactory"
,
"required"
:
false
,
"callType"
:
"async"
,
"desc"
:
"恢复出厂设置"
}],
"events"
:[
{
"outputData"
:[
{
"identifier"
:
"SN"
,
"dataType"
:{
"specs"
:{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"property"
,
"method"
:
"thing.event.property.post"
,
"name"
:
"property"
,
"type"
:
"info"
,
"required"
:
true
,
"desc"
:
"属性上报"
},
{
"outputData"
:[
],
"identifier"
:
"restoreFactoryNotification"
,
"method"
:
"thing.event.restoreFactoryNotification.post"
,
"name"
:
"恢复出厂通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:[
{
"identifier"
:
"ErrorCode"
,
"dataType"
:{
"specs"
:{
"0"
:
"正常"
},
"type"
:
"enum"
},
"name"
:
"故障代码"
}],
"identifier"
:
"error"
,
"method"
:
"thing.event.error.post"
,
"name"
:
"故障上报"
,
"type"
:
"error"
,
"required"
:
true
}]
}
"schema"
:
"https://iot-ap.ikonke.com/model/ccu_12.json"
,
"productType"
:
"ccu"
,
"profile"
:
{
"productCode"
:
"12"
,
"productName"
:
"主机"
},
"properties"
:
[{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
,
"accessMode"
:
"r"
,
"required"
:
false
}],
"services"
:
[{
"outputData"
:
[],
"identifier"
:
"set"
,
"inputData"
:
[],
"method"
:
"thing.service.property.set"
,
"name"
:
"set"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性设置"
},
{
"outputData"
:
[{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"get"
,
"inputData"
:
[
"SN"
,
"MACAddress"
,
"LanIPAddress"
,
"WanIPAddress"
,
"IOTCloudState"
,
"Version"
],
"method"
:
"thing.service.property.get"
,
"name"
:
"get"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性获取"
},
{
"outputData"
:
[],
"identifier"
:
"reboot"
,
"inputData"
:
[],
"method"
:
"thing.service.reboot"
,
"name"
:
"reboot"
,
"required"
:
false
,
"callType"
:
"async"
,
"desc"
:
"重启"
},
{
"outputData"
:
[],
"identifier"
:
"addRoom"
,
"inputData"
:
[{
"identifier"
:
"roomName"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间名字"
}],
"method"
:
"thing.service.addRoom"
,
"name"
:
"addRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加房间"
},
{
"outputData"
:
[],
"identifier"
:
"addDeviceToRoom"
,
"inputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}],
"method"
:
"thing.service.addDeviceToRoom"
,
"name"
:
"addDeviceToRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加设备到房间"
},
{
"outputData"
:
[],
"identifier"
:
"removeDeviceFromRoom"
,
"inputData"
:
[{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}],
"method"
:
"thing.service.removeDeviceFromRoom"
,
"name"
:
"removeDeviceFromRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"移除设备从房间"
},
{
"outputData"
:
[],
"identifier"
:
"deleteRoom"
,
"inputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}],
"method"
:
"thing.service.deleteRoom"
,
"name"
:
"deleteRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"删除房间"
},
{
"outputData"
:
[],
"identifier"
:
"executeRoom"
,
"inputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"productType"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"产品类别"
},
{
"identifier"
:
"action"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"PowerSwitch"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"打开"
},
"type"
:
"bool"
},
"name"
:
"电源开关"
}]
},
"name"
:
"动作"
}],
"method"
:
"thing.service.executeRoom"
,
"name"
:
"executeRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"批量执行房间设备"
}],
"events"
:
[{
"outputData"
:
[{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"property"
,
"method"
:
"thing.event.property.post"
,
"name"
:
"property"
,
"type"
:
"info"
,
"required"
:
true
,
"desc"
:
"属性上报"
},
{
"outputData"
:
[],
"identifier"
:
"rebootNotification"
,
"method"
:
"thing.event.rebootNotification.post"
,
"name"
:
"重启通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}],
"identifier"
:
"addRoomNotification"
,
"method"
:
"thing.event.addRoomNotification.post"
,
"name"
:
"房间添加通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[{
"identifier"
:
"ErrorCode"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"正常"
},
"type"
:
"enum"
},
"name"
:
"故障代码"
}],
"identifier"
:
"error"
,
"method"
:
"thing.event.error.post"
,
"name"
:
"故障上报"
,
"type"
:
"error"
,
"required"
:
true
}]
}
\ No newline at end of file
tsl/ccu-15.json
View file @
886746bb
{
"schema"
:
"https://iotx-tsl.oss-ap-southeast-1.aliyuncs.com/schema.json"
,
"productType"
:
"ccu"
,
"profile"
:{
"type"
:
"KONKE_ZIGBEE_CCU"
},
"properties"
:[
{
"identifier"
:
"SN"
,
"dataType"
:{
"specs"
:{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"Version"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
,
"accessMode"
:
"r"
,
"required"
:
false
}],
"services"
:[
{
"outputData"
:[
],
"identifier"
:
"set"
,
"inputData"
:[
],
"method"
:
"thing.service.property.set"
,
"name"
:
"set"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性设置"
},
{
"outputData"
:[
{
"identifier"
:
"SN"
,
"dataType"
:{
"specs"
:{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"get"
,
"inputData"
:[
"SN"
,
"MACAddress"
,
"LanIPAddress"
,
"WanIPAddress"
,
"IOTCloudState"
,
"Version"
],
"method"
:
"thing.service.property.get"
,
"name"
:
"get"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性获取"
},
{
"outputData"
:[
],
"identifier"
:
"restoreFactory"
,
"inputData"
:[
],
"method"
:
"thing.service.restoreFactory"
,
"name"
:
"restoreFactory"
,
"required"
:
false
,
"callType"
:
"async"
,
"desc"
:
"恢复出厂设置"
}],
"events"
:[
{
"outputData"
:[
{
"identifier"
:
"SN"
,
"dataType"
:{
"specs"
:{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:{
"specs"
:{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:{
"specs"
:{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"property"
,
"method"
:
"thing.event.property.post"
,
"name"
:
"property"
,
"type"
:
"info"
,
"required"
:
true
,
"desc"
:
"属性上报"
},
{
"outputData"
:[
],
"identifier"
:
"restoreFactoryNotification"
,
"method"
:
"thing.event.restoreFactoryNotification.post"
,
"name"
:
"恢复出厂通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:[
{
"identifier"
:
"ErrorCode"
,
"dataType"
:{
"specs"
:{
"0"
:
"正常"
},
"type"
:
"enum"
},
"name"
:
"故障代码"
}],
"identifier"
:
"error"
,
"method"
:
"thing.event.error.post"
,
"name"
:
"故障上报"
,
"type"
:
"error"
,
"required"
:
true
}]
}
"schema"
:
"https://iot-ap.ikonke.com/model/ccu_15.json"
,
"productType"
:
"ccu"
,
"profile"
:
{
"productCode"
:
"15"
,
"productName"
:
"主机"
},
"properties"
:
[{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
,
"accessMode"
:
"r"
,
"required"
:
false
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
,
"accessMode"
:
"r"
,
"required"
:
false
}],
"services"
:
[{
"outputData"
:
[],
"identifier"
:
"set"
,
"inputData"
:
[],
"method"
:
"thing.service.property.set"
,
"name"
:
"set"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性设置"
},
{
"outputData"
:
[{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"get"
,
"inputData"
:
[
"SN"
,
"MACAddress"
,
"LanIPAddress"
,
"WanIPAddress"
,
"IOTCloudState"
,
"Version"
],
"method"
:
"thing.service.property.get"
,
"name"
:
"get"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"属性获取"
},
{
"outputData"
:
[],
"identifier"
:
"reboot"
,
"inputData"
:
[],
"method"
:
"thing.service.reboot"
,
"name"
:
"reboot"
,
"required"
:
false
,
"callType"
:
"async"
,
"desc"
:
"重启"
},
{
"outputData"
:
[],
"identifier"
:
"addRoom"
,
"inputData"
:
[{
"identifier"
:
"roomName"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间名字"
}],
"method"
:
"thing.service.addRoom"
,
"name"
:
"addRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加房间"
},
{
"outputData"
:
[],
"identifier"
:
"addDeviceToRoom"
,
"inputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}],
"method"
:
"thing.service.addDeviceToRoom"
,
"name"
:
"addDeviceToRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"添加设备到房间"
},
{
"outputData"
:
[],
"identifier"
:
"removeDeviceFromRoom"
,
"inputData"
:
[{
"identifier"
:
"deviceCode"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"设备编码"
},
{
"identifier"
:
"epNum"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"10"
},
"type"
:
"text"
},
"name"
:
"设备路数"
}],
"method"
:
"thing.service.removeDeviceFromRoom"
,
"name"
:
"removeDeviceFromRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"移除设备从房间"
},
{
"outputData"
:
[],
"identifier"
:
"deleteRoom"
,
"inputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}],
"method"
:
"thing.service.deleteRoom"
,
"name"
:
"deleteRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"删除房间"
},
{
"outputData"
:
[],
"identifier"
:
"executeRoom"
,
"inputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
},
{
"identifier"
:
"productType"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"产品类别"
},
{
"identifier"
:
"action"
,
"dataType"
:
{
"type"
:
"struct"
,
"specs"
:
[{
"identifier"
:
"PowerSwitch"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"关闭"
,
"1"
:
"打开"
},
"type"
:
"bool"
},
"name"
:
"电源开关"
}]
},
"name"
:
"动作"
}],
"method"
:
"thing.service.executeRoom"
,
"name"
:
"executeRoom"
,
"required"
:
true
,
"callType"
:
"async"
,
"desc"
:
"批量执行房间设备"
}],
"events"
:
[{
"outputData"
:
[{
"identifier"
:
"SN"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"50"
},
"type"
:
"text"
},
"name"
:
"设备SN"
},
{
"identifier"
:
"MACAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"128"
},
"type"
:
"text"
},
"name"
:
"MAC地址"
},
{
"identifier"
:
"LanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanIPAddress"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"内网IP地址"
},
{
"identifier"
:
"WanState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无外网"
,
"1"
:
"有外网"
},
"type"
:
"bool"
},
"name"
:
"外网链路状态"
},
{
"identifier"
:
"IOTCloudState"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"无服务"
,
"1"
:
"有服务"
},
"type"
:
"bool"
},
"name"
:
"云服务状态"
},
{
"identifier"
:
"Version"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"255"
},
"type"
:
"text"
},
"name"
:
"版本"
}],
"identifier"
:
"property"
,
"method"
:
"thing.event.property.post"
,
"name"
:
"property"
,
"type"
:
"info"
,
"required"
:
true
,
"desc"
:
"属性上报"
},
{
"outputData"
:
[],
"identifier"
:
"rebootNotification"
,
"method"
:
"thing.event.rebootNotification.post"
,
"name"
:
"重启通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[{
"identifier"
:
"roomId"
,
"dataType"
:
{
"specs"
:
{
"length"
:
"256"
},
"type"
:
"text"
},
"name"
:
"房间id"
}],
"identifier"
:
"addRoomNotification"
,
"method"
:
"thing.event.addRoomNotification.post"
,
"name"
:
"房间添加通知消息"
,
"type"
:
"info"
,
"required"
:
true
},
{
"outputData"
:
[{
"identifier"
:
"ErrorCode"
,
"dataType"
:
{
"specs"
:
{
"0"
:
"正常"
},
"type"
:
"enum"
},
"name"
:
"故障代码"
}],
"identifier"
:
"error"
,
"method"
:
"thing.event.error.post"
,
"name"
:
"故障上报"
,
"type"
:
"error"
,
"required"
:
true
}]
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment