![]() |
Tuya iOS Smart Life App SDK 5.15.0
|
The Bluetooth mesh manager supports common Bluetooth mesh management classes and enables multiple functions. For example, the classes can be called to create groups, send control commands, and remove devices. More...
#import <ThingSmartSIGMeshManager.h>
Class Methods | |
("This method is deprecated, Use ThingSmartBleMesh::initSIGMeshManager:ttl:nodeIds: instead") | + __deprecated_msg |
("This method is deprecated, Use ThingSmartBleMesh::initSIGMeshManager:ttl:nodeIds: instead") | + __deprecated_msg |
Properties | |
BOOL | isLogin |
Whether the current network is connected. More... | |
BOOL | isPoweredOn |
Indicates the Bluetooth status of the system. More... | |
ThingSmartBleMesh * | sigMesh |
id< ThingSmartSIGMeshManagerDelegate > | delegate |
NSString * | otaTargetNodeId |
NSArray< NSData * > * | nodeIds |
The node ID of the updated device. More... | |
MeshStateManager * | meshState |
ThingMeshLogEventService * | groupEventService |
NSMutableArray * | nodeList |
NSMutableArray * | onlineNodeList |
void(^ | isConnectOTAAddress )(BOOL isSuccess) |
The Bluetooth mesh manager supports common Bluetooth mesh management classes and enables multiple functions. For example, the classes can be called to create groups, send control commands, and remove devices.
A large number of extension APIs are available to support various methods and scenarios.
Definition at line 117 of file ThingSmartSIGMeshManager.h.
+ ("This method is deprecated, Use) initSIGMeshManager: |
+ ("This method is deprecated, Use) initSIGMeshManager: |
- (void) addDeviceToGroupWithDevId: | (NSString *) | devId | |
groupAddress: | (uint32_t) | groupAddress | |
Adds a device to a group.
devId | The device ID. |
groupAddress | The group address. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) addDeviceToGroupWithDevId: | (NSString *) | devId | |
groupAddress: | (uint32_t) | groupAddress | |
Adds a device to a group.
devId | The device ID. |
groupAddress | The group address. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) addLinkageWithNodeId: | (NSString *) | nodeId | |
linkageModel: | (ThingSIGMeshDCSLinkageModel *) | model | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Add/Config the linkage
nodeId | The node ID. |
model | The linkage model |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) addLinkageWithNodeId: | (NSString *) | nodeId | |
linkageModel: | (ThingSIGMeshDCSLinkageModel *) | model | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Add/Config the linkage
nodeId | The node ID. |
model | The linkage model |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) appendActive: | (NSArray< ThingSmartSIGMeshDiscoverDeviceInfo * > *) | devList |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) appendActive: | (NSArray< ThingSmartSIGMeshDiscoverDeviceInfo * > *) | devList |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) batchPublishDps: | (NSArray< ThingSIGMeshDpActionModel * > *) | dpActions | |
retryCount: | (NSInteger) | retryCount | |
Batch sending dp
dpActions | dp |
retryCount | retryCount |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) batchPublishDps: | (NSArray< ThingSIGMeshDpActionModel * > *) | dpActions | |
retryCount: | (NSInteger) | retryCount | |
Batch sending dp
dpActions | dp |
retryCount | retryCount |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) batchQueryDps: | (NSArray< ThingSIGMeshQueryDpsModel * > *) | dps | |
forceQuery: | (BOOL) | force | |
Batch querying device's dp. @discussion Calls device:dpsUpdate:
when receiving the device reply.
dps | dps |
force | If the value is NO, the SDK has received the dpId data to be queried and ignores the query. If the value is YES, the query is forced. The recommended setting is NO. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) batchQueryDps: | (NSArray< ThingSIGMeshQueryDpsModel * > *) | dps | |
forceQuery: | (BOOL) | force | |
Batch querying device's dp. @discussion Calls device:dpsUpdate:
when receiving the device reply.
dps | dps |
force | If the value is NO, the SDK has received the dpId data to be queried and ignores the query. If the value is YES, the query is forced. The recommended setting is NO. |
Provided by category ThingSmartSIGMeshManager(Config).
- (BOOL) compareHashWithNodeId: | (NSString *) | nodeId | |
hashModel: | (ThingSIGMeshDCSHashModel *) | hashModel | |
linkageModel: | (ThingSIGMeshDCSLinkageModel *) | model | |
Compare Hash
nodeId | The node ID |
hashModel | The device hashModel |
model | The model of linkage |
Provided by category ThingSmartSIGMeshManager(Config).
- (BOOL) compareHashWithNodeId: | (NSString *) | nodeId | |
hashModel: | (ThingSIGMeshDCSHashModel *) | hashModel | |
linkageModel: | (ThingSIGMeshDCSLinkageModel *) | model | |
Compare Hash
nodeId | The node ID |
hashModel | The device hashModel |
model | The model of linkage |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) connectLowPowerNode: | (NSString *) | nodeId |
Connect the low-power nodes in the mesh network
nodeId | Address in mesh network |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) connectLowPowerNode: | (NSString *) | nodeId |
Connect the low-power nodes in the mesh network
nodeId | Address in mesh network |
Provided by category ThingSmartSIGMeshManager(Activator).
- (NSString *) currentConnectNodeId |
Returns the node ID for the current connection.
Provided by category ThingSmartSIGMeshManager(Activator).
- (NSString *) currentConnectNodeId |
Returns the node ID for the current connection.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) deleteDeviceToGroupWithDevId: | (NSString *) | devId | |
groupAddress: | (uint32_t) | groupAddress | |
Removes a device from a group.
devId | The device ID. |
groupAddress | The group address. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) deleteDeviceToGroupWithDevId: | (NSString *) | devId | |
groupAddress: | (uint32_t) | groupAddress | |
Removes a device from a group.
devId | The device ID. |
groupAddress | The group address. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) deleteLinkageWithNodeId: | (NSString *) | nodeId | |
automationId: | (int) | automathionId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Delete the linkage
nodeId | The node ID.IF nodeID is ThingSIGMeshBroadCastNode,it indicates the broadcast address, and the callback(sucess/failure) result will not be returned. |
automathionId | The automathion ID |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) deleteLinkageWithNodeId: | (NSString *) | nodeId | |
automationId: | (int) | automathionId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Delete the linkage
nodeId | The node ID.IF nodeID is ThingSIGMeshBroadCastNode,it indicates the broadcast address, and the callback(sucess/failure) result will not be returned. |
automathionId | The automathion ID |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) disconnectLowPowerNode |
Disconnect low-power nodes in the mesh network.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) disconnectLowPowerNode |
Disconnect low-power nodes in the mesh network.
Provided by category ThingSmartSIGMeshManager(Activator).
- (NSMutableArray< NSString * > *) findAllDevicesByVendorIdArray: | (NSArray *) | vendorIdArray |
Provided by category ThingSmartSIGMeshManager(Group).
- (NSMutableArray< NSString * > *) findAllDevicesByVendorIdArray: | (NSArray *) | vendorIdArray |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) getDevicesOnlineStatus |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) getDevicesOnlineStatus |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) getDeviceStatusWithDeviceModel: | (ThingSmartDeviceModel *) | deviceModel |
Returns the status of a device.
deviceModel | The device model. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) getDeviceStatusWithDeviceModel: | (ThingSmartDeviceModel *) | deviceModel |
Returns the status of a device.
deviceModel | The device model. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) getOfflineDevicesOnlineStatus |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) getOfflineDevicesOnlineStatus |
Provided by category ThingSmartSIGMeshManager(Activator).
- (NSMutableArray< NSString * > *) getSIGMeshSubDeviceList |
获取sigmesh子设备列表
Provided by category ThingSmartSIGMeshManager(Group).
- (NSMutableArray< NSString * > *) getSIGMeshSubDeviceList |
获取sigmesh子设备列表
Provided by category ThingSmartSIGMeshManager(Group).
- (void) handleDeviceToGroupWithDevId: | (NSString *) | devId | |
groupAddress: | (uint32_t) | groupAddress | |
isAdd: | (BOOL) | isAdd | |
mainDevId: | (NSString *) | mainDevId | |
categoryCode: | (NSString *) | categoryCode | |
A new way to add device to group.
devId | The device ID. |
groupAddress | The group address. |
isAdd | Whether to add device. |
mainDevId | Current device ID. |
categoryCode | The Specific Code. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) handleDeviceToGroupWithDevId: | (NSString *) | devId | |
groupAddress: | (uint32_t) | groupAddress | |
isAdd: | (BOOL) | isAdd | |
mainDevId: | (NSString *) | mainDevId | |
categoryCode: | (NSString *) | categoryCode | |
A new way to add device to group.
devId | The device ID. |
groupAddress | The group address. |
isAdd | Whether to add device. |
mainDevId | Current device ID. |
categoryCode | The Specific Code. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void(^)) isConnectOTAAddress | (BOOL) | isSuccess |
- (BOOL) isLowPowerNode: | (ThingSmartDeviceModel *) | model |
- (BOOL) isLowPowerNode: | (ThingSmartDeviceModel *) | model |
- (void) offlineSIGMeshNetwork |
- (void) offlineSIGMeshNetwork |
- (void) operateLinkageWithNodeId: | (NSString *) | nodeId | |
automationId: | (int) | automathionId | |
operatorType: | (ThingSIGMeshDCSLinkageOperatorType) | opType | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Operate the linkage of opType
nodeId | The node ID.IF nodeID is ThingSIGMeshBroadCastNode,it indicates the broadcast address, and the callback(sucess/failure) result will not be returned. |
automathionId | The automathion ID |
opType | The operator type |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) operateLinkageWithNodeId: | (NSString *) | nodeId | |
automationId: | (int) | automathionId | |
operatorType: | (ThingSIGMeshDCSLinkageOperatorType) | opType | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Operate the linkage of opType
nodeId | The node ID.IF nodeID is ThingSIGMeshBroadCastNode,it indicates the broadcast address, and the callback(sucess/failure) result will not be returned. |
automathionId | The automathion ID |
opType | The operator type |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) prepareForOTAWithTargetNodeId: | (NSString *) | targetNodeId |
Prepares for OTA updates for a specific device.
targetNodeId | The node ID of the device to be updated. |
Provided by category ThingSmartSIGMeshManager(OTA).
- (void) prepareForOTAWithTargetNodeId: | (NSString *) | targetNodeId |
Prepares for OTA updates for a specific device.
targetNodeId | The node ID of the device to be updated. |
Provided by category ThingSmartSIGMeshManager(OTA).
- (void) publishDpsWithNodeId: | (NSString *) | nodeId | |
schemaArray: | (NSArray< ThingSmartSchemaModel * > *) | schemaArray | |
dps: | (NSDictionary *) | dps | |
pcc: | (NSString *) | pcc | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs to a single device.
nodeId | The node ID. |
schemaArray | The array of DP information. |
dps | The DPs. |
pcc | The size class label of the product. |
useUnacknowledged | Specifies whether a response is required. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) publishDpsWithNodeId: | (NSString *) | nodeId | |
schemaArray: | (NSArray< ThingSmartSchemaModel * > *) | schemaArray | |
dps: | (NSDictionary *) | dps | |
pcc: | (NSString *) | pcc | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Sends DPs to a single device.
nodeId | The node ID. |
schemaArray | The array of DP information. |
dps | The DPs. |
pcc | The size class label of the product. |
useUnacknowledged | Specifies whether a response is required. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) queryCachAdvNodeOnlineStatus |
Query the online status of cache advertising devices in a mesh.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) queryCachAdvNodeOnlineStatus |
Query the online status of cache advertising devices in a mesh.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) queryDpsWithDeviceModel: | (ThingSmartDeviceModel *) | deviceModel | |
dpIds: | (NSArray< NSString * > *) | dpIds | |
Queries the device DPs.
deviceModel | The device model. |
dpIds | The group of DP IDs to be queries. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) queryDpsWithDeviceModel: | (ThingSmartDeviceModel *) | deviceModel | |
dpIds: | (NSArray< NSString * > *) | dpIds | |
Queries the device DPs.
deviceModel | The device model. |
dpIds | The group of DP IDs to be queries. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) queryGroupListWithDevid: | (NSString *) | devId |
Queries the group list.
devId | The device ID. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) queryGroupListWithDevid: | (NSString *) | devId |
Queries the group list.
devId | The device ID. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) queryGroupMemberWithGroupAddress: | (uint32_t) | groupAddress |
Queries the devices in the group based on the group address.
groupAddress | The group address. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) queryGroupMemberWithGroupAddress: | (uint32_t) | groupAddress |
Queries the devices in the group based on the group address.
groupAddress | The group address. |
Provided by category ThingSmartSIGMeshManager(Group).
- (void) queryHashWithNodeId: | (NSString *) | nodeId | |
automationId: | (int) | automathionId | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Query hash of device
nodeId | The node ID.IF nodeID is ThingSIGMeshBroadCastNode,it indicates the broadcast address, and the callback(sucess/failure) result will not be returned. |
automathionId | The automathion ID |
success | Called when the task is finished.Return NSArray <ThingSIGMeshDCSHashModel *> * |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) queryHashWithNodeId: | (NSString *) | nodeId | |
automationId: | (int) | automathionId | |
success: | (nullable ThingSuccessList) | success | |
failure: | (nullable ThingFailureError) | failure | |
Query hash of device
nodeId | The node ID.IF nodeID is ThingSIGMeshBroadCastNode,it indicates the broadcast address, and the callback(sucess/failure) result will not be returned. |
automathionId | The automathion ID |
success | Called when the task is finished.Return NSArray <ThingSIGMeshDCSHashModel *> * |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendCustomDataWithNodeId: | (NSString *) | nodeId | |
opCode: | (int) | opCode | |
payload: | (NSData *) | payload | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
The custom channel that is enabled with the vendor commands.
nodeId | The node ID. |
opCode | The operation code. |
payload | The metadata. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendCustomDataWithNodeId: | (NSString *) | nodeId | |
opCode: | (int) | opCode | |
payload: | (NSData *) | payload | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
The custom channel that is enabled with the vendor commands.
nodeId | The node ID. |
opCode | The operation code. |
payload | The metadata. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendFittingMessage: | (ThingSIGMeshFittingMsgModel *) | message |
Send a message to the fitting
message | message |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendFittingMessage: | (ThingSIGMeshFittingMsgModel *) | message |
Send a message to the fitting
message | message |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightBrightWithNodeId: | (NSString *) | nodeId | |
brightValue: | (int) | brightValue | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the brightness.
nodeId | The node ID. |
brightValue | The brightness value. Valid values: 0 to 65535 . |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightBrightWithNodeId: | (NSString *) | nodeId | |
brightValue: | (int) | brightValue | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the brightness.
nodeId | The node ID. |
brightValue | The brightness value. Valid values: 0 to 65535 . |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightCTLTempeValueWithNodeId: | (NSString *) | nodeId | |
tempValue: | (int) | tempValue | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the heating and cooling functions.
nodeId | The node ID. |
tempValue | Specifies the warm and cool temperatures. Valid values: 300 to 20000. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightCTLTempeValueWithNodeId: | (NSString *) | nodeId | |
tempValue: | (int) | tempValue | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the heating and cooling functions.
nodeId | The node ID. |
tempValue | Specifies the warm and cool temperatures. Valid values: 300 to 20000. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightHSLWithNodeId: | (NSString *) | nodeId | |
hue: | (int) | aHue | |
andSaturation: | (int) | aSaturation | |
lightness: | (int) | aLightness | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the hue, lightness, and saturation (HLS) color model.
nodeId | The node ID. |
aHue | The Hue. Valid values: 0 to 65535 . |
aSaturation | The saturation. Valid values: 0 to 65535 . |
aLightness | The brightness. Valid values: l and v , 0 to 65535 . |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightHSLWithNodeId: | (NSString *) | nodeId | |
hue: | (int) | aHue | |
andSaturation: | (int) | aSaturation | |
lightness: | (int) | aLightness | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the hue, lightness, and saturation (HLS) color model.
nodeId | The node ID. |
aHue | The Hue. Valid values: 0 to 65535 . |
aSaturation | The saturation. Valid values: 0 to 65535 . |
aLightness | The brightness. Valid values: l and v , 0 to 65535 . |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightModelWithNodeId: | (NSString *) | nodeId | |
lightModel: | (int) | alightModel | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
The setup mode.
nodeId | The node ID. |
alightModel | The light model. Valid values: 0 : the white light mode. 1 : the colored light mode. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendLightModelWithNodeId: | (NSString *) | nodeId | |
lightModel: | (int) | alightModel | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
The setup mode.
nodeId | The node ID. |
alightModel | The light model. Valid values: 0 : the white light mode. 1 : the colored light mode. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendNodeResetWithDeviceModel: | (ThingSmartDeviceModel *) | deviceModel | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the node.
deviceModel | The value of ThingSmartDeviceModel. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendNodeResetWithDeviceModel: | (ThingSmartDeviceModel *) | deviceModel | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Resets the node.
deviceModel | The value of ThingSmartDeviceModel. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendOnoffWithNodeId: | (NSString *) | nodeId | |
state: | (BOOL) | state | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the switch.
nodeId | The node ID. |
state | The switch status. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendOnoffWithNodeId: | (NSString *) | nodeId | |
state: | (BOOL) | state | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Controls the switch.
nodeId | The node ID. |
state | The switch status. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendVendorDataWithNodeId: | (NSString *) | nodeId | |
vendorData: | (NSData *) | vendorData | |
isQuery: | (BOOL) | isisQuery | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
The generic vendor protocol.
nodeId | The node ID. |
vendorData | The data content. |
isisQuery | Specifies whether a query command is sent. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) sendVendorDataWithNodeId: | (NSString *) | nodeId | |
vendorData: | (NSData *) | vendorData | |
isQuery: | (BOOL) | isisQuery | |
useUnacknowledged: | (BOOL) | useUnacknowledged | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
The generic vendor protocol.
nodeId | The node ID. |
vendorData | The data content. |
isisQuery | Specifies whether a query command is sent. |
useUnacknowledged | Specifies whether a response is required. We recommend that you set the value to no in the case of group control and yes in the case of single-device control. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) setConfig: | (ThingSIGMeshConfigModel *) | configModel |
- (void) setConfig: | (ThingSIGMeshConfigModel *) | configModel |
- (void) startActive: | (NSArray< ThingSmartSIGMeshDiscoverDeviceInfo * > *) | devList |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startActive: | (NSArray< ThingSmartSIGMeshDiscoverDeviceInfo * > *) | devList |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startActive: | (NSArray< ThingSmartSIGMeshDiscoverDeviceInfo * > *) | devList | |
meshModel: | ("This method is) | deprecated | |
(Use startActive:instead") | __deprecated_msg | ||
Starts to activate devices.
devList | A list of devices to be activated. |
meshModel | The mesh model information. |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startActive: | (NSArray< ThingSmartSIGMeshDiscoverDeviceInfo * > *) | devList | |
meshModel: | ("This method is) | deprecated | |
(Use startActive:instead") | __deprecated_msg | ||
Starts to activate devices.
devList | A list of devices to be activated. |
meshModel | The mesh model information. |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startScanWithScanType: | (ThingSmartSIGScanType) | scanType | |
meshModel: | ("This method is) | deprecated | |
(Use startSearch instead") | __deprecated_msg | ||
Starts to scan devices.
scanType | The devices to be scanned are classified into the paired devices and the devices that are not paired. The devices that are not paired are added to the network after they are scanned. |
meshModel | The mesh model. |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startScanWithScanType: | (ThingSmartSIGScanType) | scanType | |
meshModel: | ("This method is) | deprecated | |
(Use startSearch instead") | __deprecated_msg | ||
Starts to scan devices.
scanType | The devices to be scanned are classified into the paired devices and the devices that are not paired. The devices that are not paired are added to the network after they are scanned. |
meshModel | The mesh model. |
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startSceneDataTransfer: | (ThingSIGMeshSceneModel *) | model | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send vendor message with scene data to device
model | scene model |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) startSceneDataTransfer: | (ThingSIGMeshSceneModel *) | model | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Send vendor message with scene data to device
model | scene model |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) startSearch |
start search. Activated devices are automatically connected
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startSearch |
start search. Activated devices are automatically connected
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) startSendOTAPack: | (NSData *) | data | |
targetVersion: | (NSString *) | targetVersion | |
success: | (ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use instead") | __deprecated_msg[ThingSmartSIGMeshManager startSendOTAPack:upgradeModel:success:failure:] | ||
Starts to send the update package.
data | The data. |
targetVersion | The version to which the device is updated. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(OTA).
- (void) startSendOTAPack: | (NSData *) | data | |
targetVersion: | (NSString *) | targetVersion | |
success: | (ThingSuccessHandler) | success | |
failure: | ("This method is) | deprecated | |
(Use instead") | __deprecated_msg[ThingSmartSIGMeshManager startSendOTAPack:upgradeModel:success:failure:] | ||
Starts to send the update package.
data | The data. |
targetVersion | The version to which the device is updated. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(OTA).
- (void) startSendOTAPack: | (NSData *) | data | |
upgradeModel: | (ThingSmartFirmwareUpgradeModel *) | upgradeModel | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureHandler) | failure | |
Start sending upgrade package.
data | Data. |
upgradeModel | Firmware upgrade model. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(OTA).
- (void) startSendOTAPack: | (NSData *) | data | |
upgradeModel: | (ThingSmartFirmwareUpgradeModel *) | upgradeModel | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureHandler) | failure | |
Start sending upgrade package.
data | Data. |
upgradeModel | Firmware upgrade model. |
success | Called when the task finishes successfully. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(OTA).
- (void) stopActiveDevice |
Stops device activation.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) stopActiveDevice |
Stops device activation.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) stopSerachDevice |
Stops all mesh device scanning.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) stopSerachDevice |
Stops all mesh device scanning.
Provided by category ThingSmartSIGMeshManager(Activator).
- (void) switchProxyState: | (BOOL) | switchState | |
forDeviceID: | (NSString *) | devId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Switch the Proxy State.
switchState | Proxy State |
devId | The value of ThingSmartDeviceModel ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) switchProxyState: | (BOOL) | switchState | |
forDeviceID: | (NSString *) | devId | |
success: | (nullable ThingSuccessHandler) | success | |
failure: | (nullable ThingFailureError) | failure | |
Switch the Proxy State.
switchState | Proxy State |
devId | The value of ThingSmartDeviceModel ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) switchRelayState: | (BOOL) | switchState | |
forDeviceID: | (NSString *) | devId | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Switch the Relay State.
switchState | Relay State |
devId | The value of ThingSmartDeviceModel ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
- (void) switchRelayState: | (BOOL) | switchState | |
forDeviceID: | (NSString *) | devId | |
success: | (ThingSuccessHandler) | success | |
failure: | (ThingFailureError) | failure | |
Switch the Relay State.
switchState | Relay State |
devId | The value of ThingSmartDeviceModel ID. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartSIGMeshManager(Config).
|
readwritenonatomicweak |
Definition at line 128 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomicstrong |
Definition at line 136 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomiccopy |
|
readnonatomicassign |
Whether the current network is connected.
Definition at line 122 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomicassign |
Indicates the Bluetooth status of the system.
Definition at line 124 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomicstrong |
Definition at line 134 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomicstrong |
The node ID of the updated device.
Definition at line 132 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomicstrong |
Definition at line 138 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomicstrong |
Definition at line 140 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomiccopy |
Definition at line 130 of file ThingSmartSIGMeshManager.h.
|
readwritenonatomicstrong |
Definition at line 126 of file ThingSmartSIGMeshManager.h.