TYBLEMeshManagerDelegate Protocol Reference

Conforms to NSObject
Declared in TYBLEMeshManager.h

– centralManagerStatusChange:

蓝牙状态回调

- (void)centralManagerStatusChange:(CBManagerState)status

Parameters

status

z蓝牙状态

Discussion

蓝牙状态回调

Declared In

TYBLEMeshManager.h

– activeDeviceSuccessWithName:deviceId:error:

激活子设备回调

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

Parameters

name

设备名称

deviceId

dev Id

error

激活中的错误,若发生错误,name 以及 deviceId 为空

Discussion

激活子设备回调

Declared In

TYBLEMeshManager.h

– bleMeshManager:didActiveSubDevice:devId:error:

激活子设备成功回调

- (void)bleMeshManager:(TYBLEMeshManager *)manager didActiveSubDevice:(TYBleMeshDeviceModel *)device devId:(NSString *)devId error:(NSError *)error

Parameters

manager

mesh manager

device

设备

devId

设备 Id

error

激活中的错误,若发生错误,name 以及 deviceId 为空

Discussion

激活子设备成功回调

Declared In

TYBLEMeshManager.h

– activeWifiDeviceWithName:address:mac:error:

激活网关设备回调

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

Parameters

name

设备名称

address

设备地址

mac

网关 mac

error

激活中的错误

Discussion

激活网关设备回调

Declared In

TYBLEMeshManager.h

– bleMeshManager:didFailToActiveDevice:error:

激活设备失败回调

- (void)bleMeshManager:(TYBLEMeshManager *)manager didFailToActiveDevice:(TYBleMeshDeviceModel *)device error:(NSError *)error

Parameters

manager

mesh manager

device

设备

error

激活中的错误

Discussion

激活设备失败回调

Declared In

TYBLEMeshManager.h

– didFinishToActiveDevList

激活完成回调

- (void)didFinishToActiveDevList

Discussion

激活完成回调

Declared In

TYBLEMeshManager.h

– notifyCentralManagerDidDisconnectPeripheral

断开设备回调

- (void)notifyCentralManagerDidDisconnectPeripheral

Discussion

断开设备回调

Declared In

TYBLEMeshManager.h

– notifyFirmwareWithVersion:

版本号回调

- (void)notifyFirmwareWithVersion:(NSString *)version

Parameters

version

版本号

Discussion

版本号回调

Declared In

TYBLEMeshManager.h

– notifyLoginSuccessWithAddress:

登录成功通知,升级所需

- (void)notifyLoginSuccessWithAddress:(uint32_t)address

Parameters

address

当前连入入网设备地址

Discussion

登录成功通知,升级所需

Declared In

TYBLEMeshManager.h

– deviceAddGroupAddress:error:

群组操作回调,例如群组删除设备、新增设备,都会通过此回调告知为哪个设备

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

Parameters

address

设备地址

error

操作过程中的错误

Discussion

群组操作回调,例如群组删除设备、新增设备,都会通过此回调告知为哪个设备

Declared In

TYBLEMeshManager.h

– bleMeshManager:didScanedDevice:

扫描到待配网的设备

- (void)bleMeshManager:(TYBLEMeshManager *)manager didScanedDevice:(TYBleMeshDeviceModel *)device

Parameters

manager

mesh manager

device

待配网设备信息

Discussion

扫描到待配网的设备

Declared In

TYBLEMeshManager.h

– notifyQueryGroupAddress:nodeId:

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