![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
The Thing Bluetooth mesh device groups allow you to create and update groups and add devices to the groups. More...
#import <ThingSmartBleMeshGroup.h>
Class Methods | |
| (instancetype) | + meshGroupWithGroupId: |
| (void) | + getBleMeshGroupAddressFromCluondWithMeshId:success:failure: |
| (void) | + createMeshGroupWithGroupName:meshId:localId:pcc:success:failure: |
| (NSInteger) | + getBleMeshGroupAddress |
| (NSInteger) | + getBleMeshGroupCount |
| (instancetype) | + meshGroupWithGroupId: |
| (void) | + getBleMeshGroupAddressFromCluondWithMeshId:success:failure: |
| (void) | + createMeshGroupWithGroupName:meshId:localId:pcc:success:failure: |
| (NSInteger) | + getBleMeshGroupAddress |
| (NSInteger) | + getBleMeshGroupCount |
Properties | |
| id< ThingSmartBleMeshGroupDelegate > | delegate |
| ThingSmartGroupModel * | meshGroupModel |
The Thing Bluetooth mesh device groups allow you to create and update groups and add devices to the groups.
You can create a group of mesh devices with the same functions and simultaneously control them with a single command.
Definition at line 32 of file ThingSmartBleMeshGroup.h.
| - (void) addDeviceWithDeviceId: | (NSString *) | deviceId | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Adds a device.
| deviceId | The device ID. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) addDeviceWithDeviceId: | (NSString *) | deviceId | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Adds a device.
| deviceId | The device ID. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) addSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| localId: | (NSString *) | localId | |
| mainDevId: | (nullable NSString *) | devId | |
| categoryCode: | (nullable NSString *) | categoryCode | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Adds a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| localId | mesh groupId |
| devId | remote control's devId |
| categoryCode | remote control's categoryCode |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) addSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| localId: | (NSString *) | localId | |
| mainDevId: | (nullable NSString *) | devId | |
| categoryCode: | (nullable NSString *) | categoryCode | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Adds a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| localId | mesh groupId |
| devId | remote control's devId |
| categoryCode | remote control's categoryCode |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) addSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Adds a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) addSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Adds a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| + (void) createMeshGroupWithGroupName: | (NSString *) | groupName | |
| meshId: | (NSString *) | meshId | |
| localId: | (NSString *) | localId | |
| pcc: | (NSString *) | pcc | |
| success: | (ThingSuccessInt) | success | |
| failure: | (ThingFailureError) | failure | |
Creates a mesh group.
| groupName | The mesh group name. |
| meshId | The mesh ID. |
| localId | The local short address of the group. |
| pcc | The size class label of each group device. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| + (void) createMeshGroupWithGroupName: | (NSString *) | groupName | |
| meshId: | (NSString *) | meshId | |
| localId: | (NSString *) | localId | |
| pcc: | (NSString *) | pcc | |
| success: | (ThingSuccessInt) | success | |
| failure: | (ThingFailureError) | failure | |
Creates a mesh group.
| groupName | The mesh group name. |
| meshId | The mesh ID. |
| localId | The local short address of the group. |
| pcc | The size class label of each group device. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) deleteBleMeshGroupAddress: | (NSInteger) | address |
| - (void) deleteBleMeshGroupAddress: | (NSInteger) | address |
| - (void) editDeviceWithDeviceList: | (NSArray *) | deviceList | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Modifies multiple devices in a call.
| deviceList | The device list. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) editDeviceWithDeviceList: | (NSArray *) | deviceList | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Modifies multiple devices in a call.
| deviceList | The device list. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| + (NSInteger) getBleMeshGroupAddress |
| + (NSInteger) getBleMeshGroupAddress |
| + (void) getBleMeshGroupAddressFromCluondWithMeshId: | (NSString *) | meshId | |
| success: | (ThingSuccessInt) | success | |
| failure: | (ThingFailureError) | failure | |
Assigns a group ID from the cloud.
| meshId | The mesh ID. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| + (void) getBleMeshGroupAddressFromCluondWithMeshId: | (NSString *) | meshId | |
| success: | (ThingSuccessInt) | success | |
| failure: | (ThingFailureError) | failure | |
Assigns a group ID from the cloud.
| meshId | The mesh ID. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| + (NSInteger) getBleMeshGroupCount |
| + (NSInteger) getBleMeshGroupCount |
| - (void) getDeviceListInfoWithSuccess: | (void(^)(NSArray< ThingSmartDeviceModel * > *deviceList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of devices from the group.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) getDeviceListInfoWithSuccess: | (void(^)(NSArray< ThingSmartDeviceModel * > *deviceList)) | success | |
| failure: | (ThingFailureError) | failure | |
Returns a list of devices from the group.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) getDeviveListInfoWithSuccess: | (void(^)(NSArray< ThingSmartDeviceModel * > *deviceList)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use instead") | __deprecated_msg[ThingSmartBleMeshGroup getDeviceListInfoWithSuccess:failure:] | ||
Returns a list of devices from the group.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) getDeviveListInfoWithSuccess: | (void(^)(NSArray< ThingSmartDeviceModel * > *deviceList)) | success | |
| failure: | ("This method is) | deprecated | |
| (Use instead") | __deprecated_msg[ThingSmartBleMeshGroup getDeviceListInfoWithSuccess:failure:] | ||
Returns a list of devices from the group.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (instancetype) initWithGroupId: | (NSInteger) | NS_DESIGNATED_INITIALIZER |
Returns the mesh group object.
| groupId | The group ID. |
| - (instancetype) initWithGroupId: | (NSInteger) | NS_DESIGNATED_INITIALIZER |
Returns the mesh group object.
| groupId | The group ID. |
| + (instancetype) meshGroupWithGroupId: | (NSInteger) | groupId |
Returns the mesh group object.
| groupId | The group ID. |
| + (instancetype) meshGroupWithGroupId: | (NSInteger) | groupId |
Returns the mesh group object.
| groupId | The group ID. |
| - (instancetype) NS_UNAVAILABLE |
| - (instancetype) NS_UNAVAILABLE |
| - (void) publishDps: | (NSDictionary *) | dps | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) publishDps: | (NSDictionary *) | dps | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) publishDpsWithParams: | (NSDictionary *) | params | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Publishes custom parameters.
| params | param:dictionary { "localId":"c050" ,"dps":{"1":true} "pcc":"1510"} |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) publishDpsWithParams: | (NSDictionary *) | params | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Publishes custom parameters.
| params | param:dictionary { "localId":"c050" ,"dps":{"1":true} "pcc":"1510"} |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) removeDeviceWithDeviceId: | (NSString *) | deviceId | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Removes the device.
| deviceId | The device ID. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) removeDeviceWithDeviceId: | (NSString *) | deviceId | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Removes the device.
| deviceId | The device ID. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) removeMeshGroupWithSuccess: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Deletes the mesh group.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) removeMeshGroupWithSuccess: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Deletes the mesh group.
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) removeSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| localId: | (NSString *) | localId | |
| mainDevId: | (nullable NSString *) | devId | |
| categoryCode: | (nullable NSString *) | categoryCode | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Deletes a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| localId | mesh groupId |
| devId | remote control's devId |
| categoryCode | remote control's categoryCode |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) removeSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| localId: | (NSString *) | localId | |
| mainDevId: | (nullable NSString *) | devId | |
| categoryCode: | (nullable NSString *) | categoryCode | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Deletes a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| localId | mesh groupId |
| devId | remote control's devId |
| categoryCode | remote control's categoryCode |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) removeSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Deletes a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) removeSubDeviceWithSubList: | (NSArray< ThingSmartDeviceModel * > *_Nonnull) | subList | |
| success: | (nullable ThingSuccessHandler) | success | |
| failure: | (nullable ThingFailureError) | failure | |
Deletes a Bluetooth mesh sub-device group through the Bluetooth mesh gateway. The sub-devices must belong to the Bluetooth mesh gateway.
| subList | The gateway sub-device to be managed. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartBleMeshGroup(SIGMesh).
| - (void) updateMeshGroupName: | (NSString *) | meshGroupName | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Modifies the mesh group name.
| meshGroupName | The mesh group name. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
| - (void) updateMeshGroupName: | (NSString *) | meshGroupName | |
| success: | (ThingSuccessHandler) | success | |
| failure: | (ThingFailureError) | failure | |
Modifies the mesh group name.
| meshGroupName | The mesh group name. |
| success | Called when the task is finished. |
| failure | Called when the task is interrupted by an error. |
|
readwritenonatomicweak |
Definition at line 34 of file ThingSmartBleMeshGroup.h.
|
readnonatomicstrong |
Definition at line 36 of file ThingSmartBleMeshGroup.h.