#import <ThingGroupServiceProtocol.h>
Definition at line 15 of file ThingGroupServiceProtocol.h.
◆ createGroupWithName:deviceList:process:success:failure: [1/2]
创建群组–将设备加入群组 遥控器群组不需要此步骤
- Parameters
-
name | 群组名字 |
deviceList | 待添加设备列表 |
process | 进度信息 {"total":5,"current":1} |
result | 成功回调 {"groupId":"xxx"} |
failure | 失败回调 {"groupId":"xxxx","failureList":[{"devId":"xxx","errorCode":1},{"devId":"xxx","errorCode":1}],"error":{"errorCode":1,"errorMsg":"xxx"}} 优先解析error信息,error不存在时解析failureList,failureList为失败设备列表 |
◆ createGroupWithName:deviceList:process:success:failure: [2/2]
创建群组–将设备加入群组 遥控器群组不需要此步骤
- Parameters
-
name | 群组名字 |
deviceList | 待添加设备列表 |
process | 进度信息 {"total":5,"current":1} |
result | 成功回调 {"groupId":"xxx"} |
failure | 失败回调 {"groupId":"xxxx","failureList":[{"devId":"xxx","errorCode":1},{"devId":"xxx","errorCode":1}],"error":{"errorCode":1,"errorMsg":"xxx"}} 优先解析error信息,error不存在时解析failureList,failureList为失败设备列表 |
◆ fetchDeviceListWithSuccess:failure: [1/2]
获取群组下符合条件的设备列表
- Parameters
-
result | 设备列表 |
failure | failure |
◆ fetchDeviceListWithSuccess:failure: [2/2]
获取群组下符合条件的设备列表
- Parameters
-
result | 设备列表 |
failure | failure |
◆ initWithDevId: [1/2]
- (instancetype) initWithDevId: |
|
(NSString *) |
devId |
|
|
optional |
根据devId初始化群组实例–创建群组
- Parameters
-
◆ initWithDevId: [2/2]
- (instancetype) initWithDevId: |
|
(NSString *) |
devId |
|
|
optional |
根据devId初始化群组实例–创建群组
- Parameters
-
◆ initWithDevId:localId:categoryCode:codes: [1/2]
- (instancetype) initWithDevId: |
|
(NSString *) |
devId |
localId: |
|
(NSString *) |
localId |
categoryCode: |
|
(NSString *) |
categoryCode |
codes: |
|
(NSArray *) |
codes |
|
|
| |
|
optional |
初始化Zigbee遥控器实例
- Parameters
-
devId | 遥控器devId |
localId | localId |
categoryCode | categoryCode非三级品类编码,云端用于判断处理遥控器群组 zigbee遥控器有单分组和8分组的区别,单分组为8001,8分组为3001-3008 |
codes | 二级品类code |
◆ initWithDevId:localId:categoryCode:codes: [2/2]
- (instancetype) initWithDevId: |
|
(NSString *) |
devId |
localId: |
|
(NSString *) |
localId |
categoryCode: |
|
(NSString *) |
categoryCode |
codes: |
|
(NSArray *) |
codes |
|
|
| |
|
optional |
初始化Zigbee遥控器实例
- Parameters
-
devId | 遥控器devId |
localId | localId |
categoryCode | categoryCode非三级品类编码,云端用于判断处理遥控器群组 zigbee遥控器有单分组和8分组的区别,单分组为8001,8分组为3001-3008 |
codes | 二级品类code |
◆ initWithDevId:localId:categoryCode:filterType:pccs:codes: [1/2]
- (instancetype) initWithDevId: |
|
(NSString *) |
devId |
localId: |
|
(NSString *) |
localId |
categoryCode: |
|
(nullable NSString *) |
categoryCode |
filterType: |
|
(nullable NSString *) |
filterType |
pccs: |
|
(NSArray *) |
pccs |
codes: |
|
(nullable NSArray *) |
codes |
|
|
| |
|
optional |
初始化遥控器实例— 新版本 SIGMesh遥控器
- Parameters
-
devId | 遥控器devId |
localId | localId |
categoryCode | 并非三级品类,与localId匹配范围为7001-7008;localId 为云端分配,步长为8,因此一个遥控器内部最多支持关联8个群组,localid为初始值依次+1,与之匹配的categoryCode从7001依次+1. |
filterType | 类型 ,0:pccs 、1:codes,旧面板无此字段,作为新旧面板区分标志,旧面板走之前本地逻辑,新面板走云端 |
pccs | mesh category |
codes | 二级品类code |
◆ initWithDevId:localId:categoryCode:filterType:pccs:codes: [2/2]
- (instancetype) initWithDevId: |
|
(NSString *) |
devId |
localId: |
|
(NSString *) |
localId |
categoryCode: |
|
(nullable NSString *) |
categoryCode |
filterType: |
|
(nullable NSString *) |
filterType |
pccs: |
|
(NSArray *) |
pccs |
codes: |
|
(nullable NSArray *) |
codes |
|
|
| |
|
optional |
初始化遥控器实例— 新版本 SIGMesh遥控器
- Parameters
-
devId | 遥控器devId |
localId | localId |
categoryCode | 并非三级品类,与localId匹配范围为7001-7008;localId 为云端分配,步长为8,因此一个遥控器内部最多支持关联8个群组,localid为初始值依次+1,与之匹配的categoryCode从7001依次+1. |
filterType | 类型 ,0:pccs 、1:codes,旧面板无此字段,作为新旧面板区分标志,旧面板走之前本地逻辑,新面板走云端 |
pccs | mesh category |
codes | 二级品类code |
◆ initWithDevId:localId:pccs: [1/2]
初始化遥控器实例– 旧版本 SIGMesh遥控器
- Parameters
-
devId | 遥控器devId |
localId | localId |
pccs | pcc过滤条件 |
◆ initWithDevId:localId:pccs: [2/2]
初始化遥控器实例– 旧版本 SIGMesh遥控器
- Parameters
-
devId | 遥控器devId |
localId | localId |
pccs | pcc过滤条件 |
◆ initWithGroupId: [1/2]
- (instancetype) initWithGroupId: |
|
(NSString *) |
groupId |
|
|
optional |
根据groupId初始化群组实例–编辑群组
- Parameters
-
◆ initWithGroupId: [2/2]
- (instancetype) initWithGroupId: |
|
(NSString *) |
groupId |
|
|
optional |
根据groupId初始化群组实例–编辑群组
- Parameters
-
◆ removeGroupWithGroupId:success:failure: [1/2]
删除群组(支持正常群组和分享的群组移除) — 遥控器群组不支持
- Parameters
-
groupId | 群组id |
success | 成功回调 |
failure | 失败回调 |
◆ removeGroupWithGroupId:success:failure: [2/2]
删除群组(支持正常群组和分享的群组移除) — 遥控器群组不支持
- Parameters
-
groupId | 群组id |
success | 成功回调 |
failure | 失败回调 |
◆ setCurrentSpaceDeviceList: [1/2]
设置当前家庭的设备列表 适用于私有Mesh群组、普通SIGMesh群组、Beacon群组
◆ setCurrentSpaceDeviceList: [2/2]
设置当前家庭的设备列表 适用于私有Mesh群组、普通SIGMesh群组、Beacon群组
◆ updateGroupWithDeviceList:process:success:failure: [1/2]
更新群组
- Parameters
-
deviceList | 选中的设备列表 |
process | 进度信息 {"total":5,"current":1} |
result | 成功回调 {"groupId":"xxx"} |
failure | 失败回调 {"groupId":"xxxx","failureList":[{"devId":"xxx","errorCode":1},{"devId":"xxx","errorCode":1}],"error":{"errorCode":1,"errorMsg":"xxx"}} 优先解析error信息,error不存在时解析failureList,failureList为失败设备列表 |
◆ updateGroupWithDeviceList:process:success:failure: [2/2]
更新群组
- Parameters
-
deviceList | 选中的设备列表 |
process | 进度信息 {"total":5,"current":1} |
result | 成功回调 {"groupId":"xxx"} |
failure | 失败回调 {"groupId":"xxxx","failureList":[{"devId":"xxx","errorCode":1},{"devId":"xxx","errorCode":1}],"error":{"errorCode":1,"errorMsg":"xxx"}} 优先解析error信息,error不存在时解析failureList,failureList为失败设备列表 |
The documentation for this protocol was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingGroupManagerKit/ThingGroupManagerKit.xcframework/ios-arm64_x86_64-simulator/ThingGroupManagerKit.framework/Headers/ThingGroupServiceProtocol.h
- /Users/humtong/Downloads/Pods_副本/ThingGroupManagerKit/ThingGroupManagerKit.xcframework/ios-arm64/ThingGroupManagerKit.framework/Headers/ThingGroupServiceProtocol.h