Tuya iOS Smart Life App SDK 5.15.0
ThingBLEMeshManager Class Reference

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 <ThingBLEMeshManager.h>

Inheritance diagram for ThingBLEMeshManager:

Instance Methods

(void) - startScanWithName:pwd:active:wifiAddress:otaAddress:
 
(void) - activeMeshDeviceIncludeGateway:
 
(void) - activeMeshDevice:
 
(void) - stopActiveDevice
 Stops activating devices. More...
 
(void) - getLightAllStatus
 
(BOOL) - isConnected
 
(void) - stopScan
 
(void) - clearScanData
 
(void) - sendCommand:
 
(void) - startConfigWiFiWithSsid:pwd:token:
 
(void) - readFirmwareFeature
 Reads the firmware version number. More...
 
(void) - sendOTAPackWithAddress:version:otaData:success:failure:
 
(void) - getProductNameByProductId:completion:
 
(void(^)) - isConnectOTAAddress
 
(void) - startScanWithName:pwd:active:wifiAddress:otaAddress:
 
(void) - activeMeshDeviceIncludeGateway:
 
(void) - activeMeshDevice:
 
(void) - stopActiveDevice
 Stops activating devices. More...
 
(void) - getLightAllStatus
 
(BOOL) - isConnected
 
(void) - stopScan
 
(void) - clearScanData
 
(void) - sendCommand:
 
(void) - startConfigWiFiWithSsid:pwd:token:
 
(void) - readFirmwareFeature
 Reads the firmware version number. More...
 
(void) - sendOTAPackWithAddress:version:otaData:success:failure:
 
(void) - getProductNameByProductId:completion:
 
(void) - setLightModelWithAddress:type:isGroup:param:
 
(void) - setLightModelWithAddress:type:isGroup:param:
 
(void) - getLightSceneModelWithAddress:type:
 
(void) - getLightSceneModelWithAddress:type:
 
(void) - getSensorStateWithAddress:dps:type:
 
(void) - getSensorStateWithAddress:dps:type:
 
(void) - addDeviceAddress:type:groupAddress:
 
(void) - addDeviceAddress:type:groupAddress:
 
(void) - deleteDeviceAddress:type:groupAddress:
 
(void) - deleteDeviceAddress:type:groupAddress:
 
(void) - deleteGroupAddress:type:
 
(void) - deleteGroupAddress:type:
 
(NSMutableArray< NSString * > *) - findAllDevicesByVendorIdArray:
 
(NSMutableArray< NSString * > *) - findAllDevicesByVendorIdArray:
 
(void) - getGroupAddressWithDeviceAddress:type:
 
(void) - getGroupAddressWithDeviceAddress:type:
 
(void) - getDevicesAddressWithGroupAddress:type:
 
(void) - getDevicesAddressWithGroupAddress:type:
 
(void) - kickoutLightWithAddress:type:
 
(void) - kickoutLightWithAddress:type:
 
(void) - getDeviceStatusAllWithAddress:type:
 
(void) - getDeviceStatusAllWithAddress:type:
 
(void) - getDeviceCountdownWithAddress:type:
 
(void) - getDeviceCountdownWithAddress:type:
 
(NSString *) - rawDataDeleteGroupAddress:type:
 
(NSString *) - rawDataDeleteGroupAddress:type:
 
(NSString *) - rawDataDeleteDeviceAddress:groupAddress:type:
 
(NSString *) - rawDataDeleteDeviceAddress:groupAddress:type:
 
(NSString *) - rawDataAddDeviceAddress:groupAddress:type:
 
(NSString *) - rawDataAddDeviceAddress:groupAddress:type:
 
(NSString *) - rawDataGetDevicesAddressWithGroupAddress:type:
 
(NSString *) - rawDataGetDevicesAddressWithGroupAddress:type:
 
(NSString *) - rawDataKickoutLightWithAddress:type:
 
(NSString *) - rawDataKickoutLightWithAddress:type:
 
(NSString *) - rawDataGetStatusAllWithAddress:type:
 
(NSString *) - rawDataGetStatusAllWithAddress:type:
 
(NSString *) - rawDataCountDownWithAddress:type:
 
(NSString *) - rawDataCountDownWithAddress:type:
 

Class Methods

(instancetype) + sharedInstance
 The shared instance. More...
 
(instancetype) + sharedInstance
 The shared instance. More...
 

Properties

BOOL isPoweredOn
 Indicates the Bluetooth status of the system. More...
 
BOOL isLogin
 Indicates the mesh connection status. More...
 
BOOL isWifiDevice
 Indicates whether a Wi-Fi device is activated. More...
 
uint32_t wifiAddress
 Returns the node address of the Wi-Fi device if it is activated. More...
 
uint32_t otaAddress
 Returns the node address of the device that receives and installs over-the-air (OTA) updates. More...
 
NSString * ssid
 The service set identifier (SSID) of the activator. More...
 
NSString * password
 The password of the activator. More...
 
NSString * token
 The token of the activator. More...
 
NSString * authKey
 The device authorization key (AuthKey) that is used for activation. More...
 
NSString * uuid
 The UUID of the mesh node. More...
 
NSString * productId
 The product of the mesh node. More...
 
NSString * version
 The version of the mesh device. More...
 
uint32_t wifiMac
 Adds a Wi-Fi address. More...
 
id< ThingBLEMeshManagerDelegatedelegate
 The delegate of the Bluetooth LE mesh manager. More...
 
void(^ isConnectOTAAddress )(BOOL isSuccess)
 

Detailed Description

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 91 of file ThingBLEMeshManager.h.

Method Documentation

◆ activeMeshDevice: [1/2]

- (void) activeMeshDevice: (ThingBleMeshDeviceModel *)  deviceModel

Activates a specific device.

Parameters
deviceModelThe device model.

◆ activeMeshDevice: [2/2]

- (void) activeMeshDevice: (ThingBleMeshDeviceModel *)  deviceModel

Activates a specific device.

Parameters
deviceModelThe device model.

◆ activeMeshDeviceIncludeGateway: [1/2]

- (void) activeMeshDeviceIncludeGateway: (BOOL)  includeGateway

Activates the device.

Parameters
includeGatewaySpecifies whether to activate the gateway. If the value is set to yes, the scanned gateway device is activated and the sub-devices are not activated. If the value is set to no, all scanned sub-devices are activated and the gateway is not activated.

◆ activeMeshDeviceIncludeGateway: [2/2]

- (void) activeMeshDeviceIncludeGateway: (BOOL)  includeGateway

Activates the device.

Parameters
includeGatewaySpecifies whether to activate the gateway. If the value is set to yes, the scanned gateway device is activated and the sub-devices are not activated. If the value is set to no, all scanned sub-devices are activated and the gateway is not activated.

◆ addDeviceAddress:type:groupAddress: [1/2]

- (void) addDeviceAddress: (uint32_t)  deviceAddress
type: (NSString *)  type
groupAddress: (uint32_t)  groupAddress 

Adds a device to a group.

Parameters
deviceAddressThe device address.
typeThe type.
groupAddressThe group address.

Provided by category ThingBLEMeshManager(Command).

◆ addDeviceAddress:type:groupAddress: [2/2]

- (void) addDeviceAddress: (uint32_t)  deviceAddress
type: (NSString *)  type
groupAddress: (uint32_t)  groupAddress 

Adds a device to a group.

Parameters
deviceAddressThe device address.
typeThe type.
groupAddressThe group address.

Provided by category ThingBLEMeshManager(Command).

◆ clearScanData [1/2]

- (void) clearScanData

◆ clearScanData [2/2]

- (void) clearScanData

◆ deleteDeviceAddress:type:groupAddress: [1/2]

- (void) deleteDeviceAddress: (uint32_t)  deviceAddress
type: (NSString *)  type
groupAddress: (uint32_t)  groupAddress 

Removes a device from a group.

Parameters
deviceAddressThe device address.
typeThe type.
groupAddressThe group address.

Provided by category ThingBLEMeshManager(Command).

◆ deleteDeviceAddress:type:groupAddress: [2/2]

- (void) deleteDeviceAddress: (uint32_t)  deviceAddress
type: (NSString *)  type
groupAddress: (uint32_t)  groupAddress 

Removes a device from a group.

Parameters
deviceAddressThe device address.
typeThe type.
groupAddressThe group address.

Provided by category ThingBLEMeshManager(Command).

◆ deleteGroupAddress:type: [1/2]

- (void) deleteGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Deletes a group from the mesh network.

Parameters
groupAddressThe group address.
typeThe group type.

Provided by category ThingBLEMeshManager(Command).

◆ deleteGroupAddress:type: [2/2]

- (void) deleteGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Deletes a group from the mesh network.

Parameters
groupAddressThe group address.
typeThe group type.

Provided by category ThingBLEMeshManager(Command).

◆ findAllDevicesByVendorIdArray: [1/2]

- (NSMutableArray< NSString * > *) findAllDevicesByVendorIdArray: (NSArray *)  vendorIdArray

Provided by category ThingBLEMeshManager(Command).

◆ findAllDevicesByVendorIdArray: [2/2]

- (NSMutableArray< NSString * > *) findAllDevicesByVendorIdArray: (NSArray *)  vendorIdArray

Provided by category ThingBLEMeshManager(Command).

◆ getDeviceCountdownWithAddress:type: [1/2]

- (void) getDeviceCountdownWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the countdown data of a device (exclusive for electrical devices).

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ getDeviceCountdownWithAddress:type: [2/2]

- (void) getDeviceCountdownWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the countdown data of a device (exclusive for electrical devices).

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ getDevicesAddressWithGroupAddress:type: [1/2]

- (void) getDevicesAddressWithGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Returns all devices in a group.

Parameters
groupAddressThe group address.
typeThe group type.

Provided by category ThingBLEMeshManager(Command).

◆ getDevicesAddressWithGroupAddress:type: [2/2]

- (void) getDevicesAddressWithGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Returns all devices in a group.

Parameters
groupAddressThe group address.
typeThe group type.

Provided by category ThingBLEMeshManager(Command).

◆ getDeviceStatusAllWithAddress:type: [1/2]

- (void) getDeviceStatusAllWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the status of a device, such as the RGB of a light.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ getDeviceStatusAllWithAddress:type: [2/2]

- (void) getDeviceStatusAllWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the status of a device, such as the RGB of a light.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ getGroupAddressWithDeviceAddress:type: [1/2]

- (void) getGroupAddressWithDeviceAddress: (uint32_t)  deviceAddress
type: (NSString *)  type 

Returns the group address for the device.

Parameters
deviceAddressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ getGroupAddressWithDeviceAddress:type: [2/2]

- (void) getGroupAddressWithDeviceAddress: (uint32_t)  deviceAddress
type: (NSString *)  type 

Returns the group address for the device.

Parameters
deviceAddressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ getLightAllStatus [1/2]

- (void) getLightAllStatus

◆ getLightAllStatus [2/2]

- (void) getLightAllStatus

◆ getLightSceneModelWithAddress:type: [1/2]

- (void) getLightSceneModelWithAddress: (uint32_t)  address
type: (NSString *)  type 

Reads the scene mode of the light (exclusive for the lighting class).

Parameters
addressThe device address.
typeThe device size class.

Provided by category ThingBLEMeshManager(Command).

◆ getLightSceneModelWithAddress:type: [2/2]

- (void) getLightSceneModelWithAddress: (uint32_t)  address
type: (NSString *)  type 

Reads the scene mode of the light (exclusive for the lighting class).

Parameters
addressThe device address.
typeThe device size class.

Provided by category ThingBLEMeshManager(Command).

◆ getProductNameByProductId:completion: [1/2]

- (void) getProductNameByProductId: (NSString *)  productId
completion: (void(^)(NSString *))  completion 

To get the mesh product name, you must associate the product with the app in advance. Otherwise, null is returned.

Parameters
productIdThe product ID.
completionCompletes the callback.

◆ getProductNameByProductId:completion: [2/2]

- (void) getProductNameByProductId: (NSString *)  productId
completion: (void(^)(NSString *))  completion 

To get the mesh product name, you must associate the product with the app in advance. Otherwise, null is returned.

Parameters
productIdThe product ID.
completionCompletes the callback.

◆ getSensorStateWithAddress:dps:type: [1/2]

- (void) getSensorStateWithAddress: (uint32_t)  deviceAddress
dps: (NSArray *)  dps
type: (NSString *)  type 

Returns the state of the low-power contact sensor.

Parameters
deviceAddressThe device address.
dpsThe DPs.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ getSensorStateWithAddress:dps:type: [2/2]

- (void) getSensorStateWithAddress: (uint32_t)  deviceAddress
dps: (NSArray *)  dps
type: (NSString *)  type 

Returns the state of the low-power contact sensor.

Parameters
deviceAddressThe device address.
dpsThe DPs.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ isConnected [1/2]

- (BOOL) isConnected

◆ isConnected [2/2]

- (BOOL) isConnected

◆ isConnectOTAAddress

- (void(^)) isConnectOTAAddress (BOOL)  isSuccess

◆ kickoutLightWithAddress:type: [1/2]

- (void) kickoutLightWithAddress: (uint32_t)  address
type: (NSString *)  type 

Removes a device from the mesh network.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ kickoutLightWithAddress:type: [2/2]

- (void) kickoutLightWithAddress: (uint32_t)  address
type: (NSString *)  type 

Removes a device from the mesh network.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Command).

◆ rawDataAddDeviceAddress:groupAddress:type: [1/2]

- (NSString *) rawDataAddDeviceAddress: (uint32_t)  deviceAddress
groupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Adds a device to a group.

Parameters
deviceAddressThe device address.
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataAddDeviceAddress:groupAddress:type: [2/2]

- (NSString *) rawDataAddDeviceAddress: (uint32_t)  deviceAddress
groupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Adds a device to a group.

Parameters
deviceAddressThe device address.
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataCountDownWithAddress:type: [1/2]

- (NSString *) rawDataCountDownWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the device countdown (exclusive for electrical devices).

Parameters
addressTeh device address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataCountDownWithAddress:type: [2/2]

- (NSString *) rawDataCountDownWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the device countdown (exclusive for electrical devices).

Parameters
addressTeh device address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataDeleteDeviceAddress:groupAddress:type: [1/2]

- (NSString *) rawDataDeleteDeviceAddress: (uint32_t)  deviceAddress
groupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Removes a device from a group.

Parameters
deviceAddressThe device address.
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataDeleteDeviceAddress:groupAddress:type: [2/2]

- (NSString *) rawDataDeleteDeviceAddress: (uint32_t)  deviceAddress
groupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Removes a device from a group.

Parameters
deviceAddressThe device address.
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataDeleteGroupAddress:type: [1/2]

- (NSString *) rawDataDeleteGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

The commands are sent and controlled through the gateway. Deletes a group from the mesh network.

Parameters
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataDeleteGroupAddress:type: [2/2]

- (NSString *) rawDataDeleteGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

The commands are sent and controlled through the gateway. Deletes a group from the mesh network.

Parameters
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataGetDevicesAddressWithGroupAddress:type: [1/2]

- (NSString *) rawDataGetDevicesAddressWithGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Returns all devices in the specified group.

Parameters
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataGetDevicesAddressWithGroupAddress:type: [2/2]

- (NSString *) rawDataGetDevicesAddressWithGroupAddress: (uint32_t)  groupAddress
type: (NSString *)  type 

Returns all devices in the specified group.

Parameters
groupAddressThe group address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataGetStatusAllWithAddress:type: [1/2]

- (NSString *) rawDataGetStatusAllWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the status of the specified device.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataGetStatusAllWithAddress:type: [2/2]

- (NSString *) rawDataGetStatusAllWithAddress: (uint32_t)  address
type: (NSString *)  type 

Returns the status of the specified device.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataKickoutLightWithAddress:type: [1/2]

- (NSString *) rawDataKickoutLightWithAddress: (uint32_t)  address
type: (NSString *)  type 

Kicks a device out of the mesh network.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ rawDataKickoutLightWithAddress:type: [2/2]

- (NSString *) rawDataKickoutLightWithAddress: (uint32_t)  address
type: (NSString *)  type 

Kicks a device out of the mesh network.

Parameters
addressThe device address.
typeThe type.

Provided by category ThingBLEMeshManager(Raw).

◆ readFirmwareFeature [1/2]

- (void) readFirmwareFeature

Reads the firmware version number.

◆ readFirmwareFeature [2/2]

- (void) readFirmwareFeature

Reads the firmware version number.

◆ sendCommand: [1/2]

- (void) sendCommand: (ThingBLEMeshCommand *)  command

Sends a command.

Parameters
commandThe command.

◆ sendCommand: [2/2]

- (void) sendCommand: (ThingBLEMeshCommand *)  command

Sends a command.

Parameters
commandThe command.

◆ sendOTAPackWithAddress:version:otaData:success:failure: [1/2]

- (void) sendOTAPackWithAddress: (NSInteger)  address
version: (NSString *)  version
otaData: (NSData *)  otaData
success: (ThingSuccessHandler success
failure: (ThingFailureHandler failure 

Sends the update package.

Parameters
addressThe device address.
versionThe version.
otaDataThe OTA data.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ sendOTAPackWithAddress:version:otaData:success:failure: [2/2]

- (void) sendOTAPackWithAddress: (NSInteger)  address
version: (NSString *)  version
otaData: (NSData *)  otaData
success: (ThingSuccessHandler success
failure: (ThingFailureHandler failure 

Sends the update package.

Parameters
addressThe device address.
versionThe version.
otaDataThe OTA data.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ setLightModelWithAddress:type:isGroup:param: [1/2]

- (void) setLightModelWithAddress: (uint32_t)  address
type: (NSString *)  type
isGroup: (BOOL)  isGroup
param: (NSArray< NSString * > *)  param 

Sets the mode of the light (exclusive for the lighting class).

Parameters
addressThe address.
typeThe device size class.
isGroupIndicates whether a group is used.
paramThe parameter.

Provided by category ThingBLEMeshManager(Command).

◆ setLightModelWithAddress:type:isGroup:param: [2/2]

- (void) setLightModelWithAddress: (uint32_t)  address
type: (NSString *)  type
isGroup: (BOOL)  isGroup
param: (NSArray< NSString * > *)  param 

Sets the mode of the light (exclusive for the lighting class).

Parameters
addressThe address.
typeThe device size class.
isGroupIndicates whether a group is used.
paramThe parameter.

Provided by category ThingBLEMeshManager(Command).

◆ sharedInstance [1/2]

+ (instancetype) sharedInstance

The shared instance.

◆ sharedInstance [2/2]

+ (instancetype) sharedInstance

The shared instance.

◆ startConfigWiFiWithSsid:pwd:token: [1/2]

- (void) startConfigWiFiWithSsid: (NSString *)  ssid
pwd: (NSString *)  pwd
token: (NSString *)  token 

Writes Wi-Fi information to the gateway. This method is automatically called after activation with the SDK.

Parameters
ssidThe name of the router hotspot.
pwdThe password of the router hotspot.
tokenThe pairing token.

◆ startConfigWiFiWithSsid:pwd:token: [2/2]

- (void) startConfigWiFiWithSsid: (NSString *)  ssid
pwd: (NSString *)  pwd
token: (NSString *)  token 

Writes Wi-Fi information to the gateway. This method is automatically called after activation with the SDK.

Parameters
ssidThe name of the router hotspot.
pwdThe password of the router hotspot.
tokenThe pairing token.

◆ startScanWithName:pwd:active:wifiAddress:otaAddress: [1/2]

- (void) startScanWithName: (NSString *)  name
pwd: (NSString *)  pwd
active: (BOOL)  active
wifiAddress: (uint32_t)  wifiAddress
otaAddress: (uint32_t)  otaAddress 

The mesh entrance. To pair the device, enter the default mesh name and password. In this case, only the value of -(void) blemeshmanager: (thingblemeshmanager *) manager didscaneddevice: (thingblemeshdevicemodel *) device; is returned as the scanning result.

Parameters
nameThe mesh name.
pwdThe mesh password.
activeSpecifies whether to activate the gateway for pairing.
wifiAddressThe Wi-Fi address that is used for gateway pairing. Set the value to 0 for other operations.
otaAddressThe device address for OTA updates. Set the value to 0 for other operations.

◆ startScanWithName:pwd:active:wifiAddress:otaAddress: [2/2]

- (void) startScanWithName: (NSString *)  name
pwd: (NSString *)  pwd
active: (BOOL)  active
wifiAddress: (uint32_t)  wifiAddress
otaAddress: (uint32_t)  otaAddress 

The mesh entrance. To pair the device, enter the default mesh name and password. In this case, only the value of -(void) blemeshmanager: (thingblemeshmanager *) manager didscaneddevice: (thingblemeshdevicemodel *) device; is returned as the scanning result.

Parameters
nameThe mesh name.
pwdThe mesh password.
activeSpecifies whether to activate the gateway for pairing.
wifiAddressThe Wi-Fi address that is used for gateway pairing. Set the value to 0 for other operations.
otaAddressThe device address for OTA updates. Set the value to 0 for other operations.

◆ stopActiveDevice [1/2]

- (void) stopActiveDevice

Stops activating devices.

◆ stopActiveDevice [2/2]

- (void) stopActiveDevice

Stops activating devices.

◆ stopScan [1/2]

- (void) stopScan

◆ stopScan [2/2]

- (void) stopScan

Property Documentation

◆ authKey

- (NSString *) authKey
readwritenonatomicstrong

The device authorization key (AuthKey) that is used for activation.

Definition at line 121 of file ThingBLEMeshManager.h.

◆ delegate

- (id< ThingBLEMeshManagerDelegate >) delegate
readwritenonatomicweak

The delegate of the Bluetooth LE mesh manager.

Definition at line 136 of file ThingBLEMeshManager.h.

◆ isConnectOTAAddress

- (void(^ isConnectOTAAddress) (BOOL isSuccess))
readwritenonatomiccopy

◆ isLogin

- (BOOL) isLogin
readwritenonatomicassign

Indicates the mesh connection status.

Definition at line 100 of file ThingBLEMeshManager.h.

◆ isPoweredOn

- (BOOL) isPoweredOn
readwritenonatomicassign

Indicates the Bluetooth status of the system.

Definition at line 97 of file ThingBLEMeshManager.h.

◆ isWifiDevice

- (BOOL) isWifiDevice
readwritenonatomicassign

Indicates whether a Wi-Fi device is activated.

Definition at line 103 of file ThingBLEMeshManager.h.

◆ otaAddress

- (uint32_t) otaAddress
readwritenonatomicassign

Returns the node address of the device that receives and installs over-the-air (OTA) updates.

Definition at line 109 of file ThingBLEMeshManager.h.

◆ password

- (NSString *) password
readwritenonatomicstrong

The password of the activator.

Definition at line 115 of file ThingBLEMeshManager.h.

◆ productId

- (NSString *) productId
readwritenonatomicstrong

The product of the mesh node.

Definition at line 127 of file ThingBLEMeshManager.h.

◆ ssid

- (NSString *) ssid
readwritenonatomicstrong

The service set identifier (SSID) of the activator.

Definition at line 112 of file ThingBLEMeshManager.h.

◆ token

- (NSString *) token
readwritenonatomicstrong

The token of the activator.

Definition at line 118 of file ThingBLEMeshManager.h.

◆ uuid

- (NSString *) uuid
readwritenonatomicstrong

The UUID of the mesh node.

Definition at line 124 of file ThingBLEMeshManager.h.

◆ version

- (NSString *) version
readwritenonatomicstrong

The version of the mesh device.

Definition at line 130 of file ThingBLEMeshManager.h.

◆ wifiAddress

- (uint32_t) wifiAddress
readwritenonatomicassign

Returns the node address of the Wi-Fi device if it is activated.

Definition at line 106 of file ThingBLEMeshManager.h.

◆ wifiMac

- (uint32_t) wifiMac
readwritenonatomicassign

Adds a Wi-Fi address.

Definition at line 133 of file ThingBLEMeshManager.h.


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