TuyaSmartBleMeshGroup Class Reference

Inherits from NSObject
Declared in TuyaSmartBleMeshGroup.h

Other Methods

  delegate

@property (nonatomic, weak, nullable) id<TuyaSmartBleMeshGroupDelegate> delegate

  meshGroupModel

@property (nonatomic, strong, readonly) TuyaSmartGroupModel *meshGroupModel

+ meshGroupWithGroupId:

获取mesh群组对象

+ (instancetype)meshGroupWithGroupId:(NSInteger)groupId

Parameters

groupId

群组Id

Discussion

获取mesh群组对象

Declared In

TuyaSmartBleMeshGroup.h

– initWithGroupId:

获取mesh群组对象

- (instancetype)initWithGroupId:(NSInteger)groupId

Parameters

groupId

群组Id

Discussion

获取mesh群组对象

Declared In

TuyaSmartBleMeshGroup.h

– init

- (instancetype)init

+ getBleMeshGroupAddressFromCluondWithMeshId:success:failure:

向云端分配群组 Id

+ (void)getBleMeshGroupAddressFromCluondWithMeshId:(NSString *)meshId success:(TYSuccessInt)success failure:(TYFailureError)failure

Parameters

meshId

mesh id

success

成功回调 localid 10 进制

failure

失败回调

Discussion

向云端分配群组 Id

Declared In

TuyaSmartBleMeshGroup.h

+ createMeshGroupWithGroupName:meshId:localId:pcc:success:failure:

创建mesh群组

+ (void)createMeshGroupWithGroupName:(NSString *)groupName meshId:(NSString *)meshId localId:(NSString *)localId pcc:(NSString *)pcc success:(TYSuccessInt)success failure:(TYFailureError)failure

Parameters

groupName

mesh群组名字

meshId

meshId

localId

群组的本地短地址

pcc

群组设备大小类

success

操作成功回调 GroupId

failure

操作失败回调

Discussion

创建mesh群组

Declared In

TuyaSmartBleMeshGroup.h

+ getBleMeshGroupAddress

+ (NSInteger)getBleMeshGroupAddress

+ getBleMeshGroupCount

+ (NSInteger)getBleMeshGroupCount

– deleteBleMeshGroupAddress:

- (void)deleteBleMeshGroupAddress:(NSInteger)address

– updateMeshGroupName:success:failure:

修改mesh群组名字

- (void)updateMeshGroupName:(NSString *)meshGroupName success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

meshGroupName

meshGroup名称

success

操作成功回调

failure

操作失败回调

Discussion

修改mesh群组名字

Declared In

TuyaSmartBleMeshGroup.h

– removeMeshGroupWithSuccess:failure:

删除mesh群组

- (void)removeMeshGroupWithSuccess:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

success

操作成功回调

failure

操作失败回调

Discussion

删除mesh群组

Declared In

TuyaSmartBleMeshGroup.h

– addDeviceWithDeviceId:success:failure:

添加设备

- (void)addDeviceWithDeviceId:(NSString *)deviceId success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

success

操作成功回调

failure

操作失败回调

Discussion

添加设备

Declared In

TuyaSmartBleMeshGroup.h

– editDeviceWithDeviceList:success:failure:

批量修改设备

- (void)editDeviceWithDeviceList:(NSArray *)deviceList success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

success

操作成功回调

failure

操作失败回调

Discussion

批量修改设备

Declared In

TuyaSmartBleMeshGroup.h

– removeDeviceWithDeviceId:success:failure:

移除设备

- (void)removeDeviceWithDeviceId:(NSString *)deviceId success:(TYSuccessHandler)success failure:(TYFailureError)failure

Parameters

success

操作成功回调

failure

操作失败回调

Discussion

移除设备

Declared In

TuyaSmartBleMeshGroup.h

– getDeviveListInfoWithSuccess:failure:

获取群组中设备list信息

- (void)getDeviveListInfoWithSuccess:(void ( ^ ) ( NSArray<TuyaSmartDeviceModel*> *deviceList ))success failure:(TYFailureError)failure

Parameters

success

操作成功回调

failure

操作失败回调

Discussion

获取群组中设备list信息

Declared In

TuyaSmartBleMeshGroup.h

SIGMesh Methods

– addSubDeviceWithSubList:success:failure:

通过 sig mesh 网关添加 sig mesh 子设备群组 需要保证子设备的关系归属在在 sig mesh 网关下

- (void)addSubDeviceWithSubList:(NSArray<TuyaSmartDeviceModel*> *_Nonnull)subList success:(nullable TYSuccessHandler)success failure:(nullable TYFailureError)failure

Parameters

subList

待操作的网关下子设备

success

操作成功回调

failure

操作失败回调

Discussion

通过 sig mesh 网关添加 sig mesh 子设备群组 需要保证子设备的关系归属在在 sig mesh 网关下

Declared In

TuyaSmartBleMeshGroup.h

– removeSubDeviceWithSubList:success:failure:

通过 sig mesh 网关删除 sig mesh 子设备群组 需要保证子设备的关系归属在在 sig mesh 网关下

- (void)removeSubDeviceWithSubList:(NSArray<TuyaSmartDeviceModel*> *_Nonnull)subList success:(nullable TYSuccessHandler)success failure:(nullable TYFailureError)failure

Parameters

subList

待操作的网关下子设备

success

操作成功回调

failure

操作失败回调

Discussion

通过 sig mesh 网关删除 sig mesh 子设备群组 需要保证子设备的关系归属在在 sig mesh 网关下

Declared In

TuyaSmartBleMeshGroup.h

– publishDps:success:failure:

- (void)publishDps:(NSDictionary *)dps success:(nullable TYSuccessHandler)success failure:(nullable TYFailureError)failure