Tuya iOS Smart Life App SDK 5.15.0
<ThingBLEMeshManagerDelegate> Protocol Reference

The Bluetooth LE mesh delegate that is instantiated when the Bluetooth LE mesh manager performs a specific action and receives messages. More...

#import <ThingBLEMeshManager.h>

Inheritance diagram for <ThingBLEMeshManagerDelegate>:

Instance Methods

(void) - centralManagerStatusChange:
 
(void) - activeDeviceSuccessWithName:deviceId:error:
 
(void) - bleMeshManager:didActiveSubDevice:devId:error:
 
(void) - activeWifiDeviceWithName:address:mac:error:
 
(void) - bleMeshManager:didFailToActiveDevice:error:
 
(void) - didFinishToActiveDevList
 The callback that is used when the activation is completed. More...
 
(void) - notifyCentralManagerDidDisconnectPeripheral
 The callback that is used when a device is disconnected. More...
 
(void) - notifyFirmwareWithVersion:
 
(void) - notifyLoginSuccessWithAddress:
 
(void) - deviceAddGroupAddress:error:
 
(void) - bleMeshManager:didScanedDevice:
 
(void) - notifyQueryGroupAddress:nodeId:
 
(void) - didConnectMeshNodeAndLoginMesh
 The callback that is used when a mesh network is connected. This enables subsequent local communication. More...
 
(void) - centralManagerStatusChange:
 
(void) - activeDeviceSuccessWithName:deviceId:error:
 
(void) - bleMeshManager:didActiveSubDevice:devId:error:
 
(void) - activeWifiDeviceWithName:address:mac:error:
 
(void) - bleMeshManager:didFailToActiveDevice:error:
 
(void) - didFinishToActiveDevList
 The callback that is used when the activation is completed. More...
 
(void) - notifyCentralManagerDidDisconnectPeripheral
 The callback that is used when a device is disconnected. More...
 
(void) - notifyFirmwareWithVersion:
 
(void) - notifyLoginSuccessWithAddress:
 
(void) - deviceAddGroupAddress:error:
 
(void) - bleMeshManager:didScanedDevice:
 
(void) - notifyQueryGroupAddress:nodeId:
 
(void) - didConnectMeshNodeAndLoginMesh
 The callback that is used when a mesh network is connected. This enables subsequent local communication. More...
 

Detailed Description

The Bluetooth LE mesh delegate that is instantiated when the Bluetooth LE mesh manager performs a specific action and receives messages.

Definition at line 22 of file ThingBLEMeshManager.h.

Method Documentation

◆ activeDeviceSuccessWithName:deviceId:error: [1/2]

- (void) activeDeviceSuccessWithName: (nullable NSString *)  name
deviceId: (nullable NSString *)  deviceId
error: (nullable NSError *)  error 
optional

The callback that is used to activate a sub-device.

Parameters
nameThe device name.
deviceIdThe device ID.
errorAn error occurs while activating the sub-device. The values of ‘name’ and 'deviceid' are empty in the response.

◆ activeDeviceSuccessWithName:deviceId:error: [2/2]

- (void) activeDeviceSuccessWithName: (nullable NSString *)  name
deviceId: (nullable NSString *)  deviceId
error: (nullable NSError *)  error 
optional

The callback that is used to activate a sub-device.

Parameters
nameThe device name.
deviceIdThe device ID.
errorAn error occurs while activating the sub-device. The values of ‘name’ and 'deviceid' are empty in the response.

◆ activeWifiDeviceWithName:address:mac:error: [1/2]

- (void) activeWifiDeviceWithName: (nullable NSString *)  name
address: (NSInteger)  address
mac: (NSInteger)  mac
error: (nullable NSError *)  error 
optional

The callback that is used to activate a gateway device.

Parameters
nameThe device name.
addressThe device address.
macThe gateway MAC.
errorAn error occurs while processing the request.

◆ activeWifiDeviceWithName:address:mac:error: [2/2]

- (void) activeWifiDeviceWithName: (nullable NSString *)  name
address: (NSInteger)  address
mac: (NSInteger)  mac
error: (nullable NSError *)  error 
optional

The callback that is used to activate a gateway device.

Parameters
nameThe device name.
addressThe device address.
macThe gateway MAC.
errorAn error occurs while processing the request.

◆ bleMeshManager:didActiveSubDevice:devId:error: [1/2]

- (void) bleMeshManager: (ThingBLEMeshManager *)  manager
didActiveSubDevice: (ThingBleMeshDeviceModel *)  device
devId: (NSString *)  devId
error: (nullable NSError *)  error 
optional

The callback that is used when a sub-device is activated.

Parameters
managerThe value of ThingBLEMeshManager.
deviceThe value of ThingBleMeshDeviceModel.
devIdThe device ID.
errorAn error occurs while activating the sub-device. The values of ‘name’ and 'deviceid' are empty in the response.

◆ bleMeshManager:didActiveSubDevice:devId:error: [2/2]

- (void) bleMeshManager: (ThingBLEMeshManager *)  manager
didActiveSubDevice: (ThingBleMeshDeviceModel *)  device
devId: (NSString *)  devId
error: (nullable NSError *)  error 
optional

The callback that is used when a sub-device is activated.

Parameters
managerThe value of ThingBLEMeshManager.
deviceThe value of ThingBleMeshDeviceModel.
devIdThe device ID.
errorAn error occurs while activating the sub-device. The values of ‘name’ and 'deviceid' are empty in the response.

◆ bleMeshManager:didFailToActiveDevice:error: [1/2]

- (void) bleMeshManager: (ThingBLEMeshManager *)  manager
didFailToActiveDevice: (ThingBleMeshDeviceModel *)  device
error: (NSError *)  error 
optional

The callback that is used when a device failed to be activated.

Parameters
managerThe value of ThingBLEMeshManager.
deviceThe device.
errorAn error occurs while processing the request.

◆ bleMeshManager:didFailToActiveDevice:error: [2/2]

- (void) bleMeshManager: (ThingBLEMeshManager *)  manager
didFailToActiveDevice: (ThingBleMeshDeviceModel *)  device
error: (NSError *)  error 
optional

The callback that is used when a device failed to be activated.

Parameters
managerThe value of ThingBLEMeshManager.
deviceThe device.
errorAn error occurs while processing the request.

◆ bleMeshManager:didScanedDevice: [1/2]

- (void) bleMeshManager: (ThingBLEMeshManager *)  manager
didScanedDevice: (ThingBleMeshDeviceModel *)  device 
optional

Scans the devices to be paired.

Parameters
managerThe value of ThingBLEMeshManager.
deviceThe value of ThingBleMeshDeviceModel.

◆ bleMeshManager:didScanedDevice: [2/2]

- (void) bleMeshManager: (ThingBLEMeshManager *)  manager
didScanedDevice: (ThingBleMeshDeviceModel *)  device 
optional

Scans the devices to be paired.

Parameters
managerThe value of ThingBLEMeshManager.
deviceThe value of ThingBleMeshDeviceModel.

◆ centralManagerStatusChange: [1/2]

- (void) centralManagerStatusChange: (CBManagerState)  status
optional

The callback of the Bluetooth status.

Parameters
statusThe Bluetooth status.

◆ centralManagerStatusChange: [2/2]

- (void) centralManagerStatusChange: (CBManagerState)  status
optional

The callback of the Bluetooth status.

Parameters
statusThe Bluetooth status.

◆ deviceAddGroupAddress:error: [1/2]

- (void) deviceAddGroupAddress: (uint32_t)  address
error: (NSError *)  error 
optional

The callback of group operations. For example, this callback is used when devices are added to or deleted from the group.

Parameters
addressThe device address.
errorAn error occurs while managing the devices in the group.

◆ deviceAddGroupAddress:error: [2/2]

- (void) deviceAddGroupAddress: (uint32_t)  address
error: (NSError *)  error 
optional

The callback of group operations. For example, this callback is used when devices are added to or deleted from the group.

Parameters
addressThe device address.
errorAn error occurs while managing the devices in the group.

◆ didConnectMeshNodeAndLoginMesh [1/2]

- (void) didConnectMeshNodeAndLoginMesh
optional

The callback that is used when a mesh network is connected. This enables subsequent local communication.

◆ didConnectMeshNodeAndLoginMesh [2/2]

- (void) didConnectMeshNodeAndLoginMesh
optional

The callback that is used when a mesh network is connected. This enables subsequent local communication.

◆ didFinishToActiveDevList [1/2]

- (void) didFinishToActiveDevList
optional

The callback that is used when the activation is completed.

◆ didFinishToActiveDevList [2/2]

- (void) didFinishToActiveDevList
optional

The callback that is used when the activation is completed.

◆ notifyCentralManagerDidDisconnectPeripheral [1/2]

- (void) notifyCentralManagerDidDisconnectPeripheral
optional

The callback that is used when a device is disconnected.

◆ notifyCentralManagerDidDisconnectPeripheral [2/2]

- (void) notifyCentralManagerDidDisconnectPeripheral
optional

The callback that is used when a device is disconnected.

◆ notifyFirmwareWithVersion: [1/2]

- (void) notifyFirmwareWithVersion: (NSString *)  version
optional

The callback of the version number.

Parameters
versionThe version number.

◆ notifyFirmwareWithVersion: [2/2]

- (void) notifyFirmwareWithVersion: (NSString *)  version
optional

The callback of the version number.

Parameters
versionThe version number.

◆ notifyLoginSuccessWithAddress: [1/2]

- (void) notifyLoginSuccessWithAddress: (uint32_t)  address
optional

The notification of login success. Updates are required.

Parameters
addressThe address of the connected device.

◆ notifyLoginSuccessWithAddress: [2/2]

- (void) notifyLoginSuccessWithAddress: (uint32_t)  address
optional

The notification of login success. Updates are required.

Parameters
addressThe address of the connected device.

◆ notifyQueryGroupAddress:nodeId: [1/2]

- (void) notifyQueryGroupAddress: (uint32_t)  localId
nodeId: (uint32_t)  nodeId 
optional

◆ notifyQueryGroupAddress:nodeId: [2/2]

- (void) notifyQueryGroupAddress: (uint32_t)  localId
nodeId: (uint32_t)  nodeId 
optional

The documentation for this protocol was generated from the following files: