TuyaSmartSIGMeshManagerDelegate Protocol Reference

Conforms to NSObject
Declared in TuyaSmartSIGMeshManager.h

– sigMeshManager:didActiveSubDevice:devId:error:

激活子设备成功回调

- (void)sigMeshManager:(TuyaSmartSIGMeshManager *)manager didActiveSubDevice:(TuyaSmartSIGMeshDiscoverDeviceInfo *)device devId:(NSString *)devId error:(NSError *)error

Parameters

manager

mesh manager

device

设备

devId

设备 Id

error

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

Discussion

激活子设备成功回调

Declared In

TuyaSmartSIGMeshManager.h

– sigMeshManager:didFailToActiveDevice:error:

激活设备失败回调

- (void)sigMeshManager:(TuyaSmartSIGMeshManager *)manager didFailToActiveDevice:(TuyaSmartSIGMeshDiscoverDeviceInfo *)device error:(NSError *)error

Parameters

manager

mesh manager

device

设备

error

激活中的错误

Discussion

激活设备失败回调

Declared In

TuyaSmartSIGMeshManager.h

– didFinishToActiveDevList

激活完成回调

- (void)didFinishToActiveDevList

Discussion

激活完成回调

Declared In

TuyaSmartSIGMeshManager.h

– notifyCentralManagerDidDisconnectPeripheral

断开设备回调

- (void)notifyCentralManagerDidDisconnectPeripheral

Discussion

断开设备回调

Declared In

TuyaSmartSIGMeshManager.h

– sigMeshManager:didScanedDevice:

扫描到待配网的设备

- (void)sigMeshManager:(TuyaSmartSIGMeshManager *)manager didScanedDevice:(TuyaSmartSIGMeshDiscoverDeviceInfo *)device

Parameters

manager

mesh manager

device

待配网设备信息

Discussion

扫描到待配网的设备

Declared In

TuyaSmartSIGMeshManager.h

– sigMeshManager:didHandleGroupWithGroupAddress:deviceNodeId:error:

群组操作完成

- (void)sigMeshManager:(TuyaSmartSIGMeshManager *)manager didHandleGroupWithGroupAddress:(NSString *)groupAddress deviceNodeId:(NSString *)nodeId error:(NSError *)error

Parameters

manager

manager

groupAddress

群组 mesh 地址, 16 进制

nodeId

设备 mesh 节点地址,16 进制

error

错误

Discussion

群组操作完成

Declared In

TuyaSmartSIGMeshManager.h

– notifySIGLoginSuccess

登录成功通知,升级所需

- (void)notifySIGLoginSuccess

Discussion

登录成功通知,升级所需

Declared In

TuyaSmartSIGMeshManager.h

– sigMeshManager:queryDeviceModel:groupAddress:

- (void)sigMeshManager:(TuyaSmartSIGMeshManager *)manager queryDeviceModel:(TuyaSmartDeviceModel *)deviceModel groupAddress:(uint32_t)groupAddress