TuyaSmartDeviceDelegate Protocol Reference

Conforms to NSObject
Declared in TuyaSmartDevice.h

Overview

dp publish channel 设备控制的方式

– deviceInfoUpdate:

Device info update, such as the name, online 设备基本信息(例如名字,在线状态等)变化代理回调

- (void)deviceInfoUpdate:(TuyaSmartDevice *)device

Parameters

device

instance

Discussion

Device info update, such as the name, online 设备基本信息(例如名字,在线状态等)变化代理回调

Declared In

TuyaSmartDevice.h

– deviceRemoved:

Device removed 设备被移除变化代理回调

- (void)deviceRemoved:(TuyaSmartDevice *)device

Parameters

device

instance

Discussion

Device removed 设备被移除变化代理回调

Declared In

TuyaSmartDevice.h

– device:dpsUpdate:

dp data update 设备 dps 变化代理回调

- (void)device:(TuyaSmartDevice *)device dpsUpdate:(NSDictionary *)dps

Parameters

device

instance

dps

dps

Discussion

dp data update 设备 dps 变化代理回调

Declared In

TuyaSmartDevice.h

– device:dpCommandsUpdate:

dp data update 设备 dpCodes 变化代理回调

- (void)device:(TuyaSmartDevice *)device dpCommandsUpdate:(NSDictionary *)dpCodes

Parameters

device

instance

dpCodes

dpCodes

Discussion

dp data update 设备 dpCodes 变化代理回调

Declared In

TuyaSmartDevice.h

– device:firmwareUpgradeProgress:progress:

Firmware upgrade progress. 固件升级进度

- (void)device:(TuyaSmartDevice *)device firmwareUpgradeProgress:(NSInteger)type progress:(double)progress

Parameters

device

instance

type

device type

progress

upgrade progress

Discussion

Firmware upgrade progress. 固件升级进度

Declared In

TuyaSmartDevice.h

– device:firmwareUpgradeStatusModel:

the delegate of device firmware upgrade status update 设备升级状态的回调

- (void)device:(TuyaSmartDevice *)device firmwareUpgradeStatusModel:(TuyaSmartFirmwareUpgradeStatusModel *)upgradeStatusModel

Parameters

device

设备模型 deviceModel

upgradeStatusModel

设备升级状态模型 upgradeStatusModel

Discussion

the delegate of device firmware upgrade status update 设备升级状态的回调

Declared In

TuyaSmartDevice.h

– device:signal:

Wifi signal strength callback. Wifi信号强度

- (void)device:(TuyaSmartDevice *)device signal:(NSString *)signal

Parameters

device

instance

signal

Signal strength

Discussion

Wifi signal strength callback. Wifi信号强度

Declared In

TuyaSmartDevice.h

– device:didReceiveCustomMessage:

Recv custom message 收到自定义消息

- (void)device:(TuyaSmartDevice *)device didReceiveCustomMessage:(TuyaSmartMQTTMessageModel *)message

Parameters

device

instance

message

custom message

Discussion

Recv custom message 收到自定义消息

Declared In

TuyaSmartDevice.h

– device:warningInfoUpdate:

the delegate of warning information update 设备的告警信息变化的代理回调

- (void)device:(TuyaSmartDevice *)device warningInfoUpdate:(NSDictionary *)warningInfo

Parameters

device

instance

warningInfo

warning info

Discussion

the delegate of warning information update 设备的告警信息变化的代理回调

Declared In

TuyaSmartDevice.h

– device:type:upgradeStatus:

the delegate of device firmware upgrade status update 设备升级状态的回调

- (void)device:(TuyaSmartDevice *)device type:(NSInteger)type upgradeStatus:(TuyaSmartDeviceUpgradeStatus)upgradeStatus

Parameters

device

deviceModel

upgradeStatus

upgrade status

Discussion

the delegate of device firmware upgrade status update 设备升级状态的回调

Declared In

TuyaSmartDevice.h

– deviceFirmwareUpgradeSuccess:type:

Device firmware upgrade success 固件升级成功代理回调

- (void)deviceFirmwareUpgradeSuccess:(TuyaSmartDevice *)device type:(NSInteger)type

Parameters

device

instance

type

device type

Discussion

Device firmware upgrade success 固件升级成功代理回调

Declared In

TuyaSmartDevice.h

– deviceFirmwareUpgradeFailure:type:

Device firmware upgrade failure 固件升级失败代理回调

- (void)deviceFirmwareUpgradeFailure:(TuyaSmartDevice *)device type:(NSInteger)type

Parameters

device

instance

type

device type

Discussion

Device firmware upgrade failure 固件升级失败代理回调

Declared In

TuyaSmartDevice.h

– deviceFirmwareUpgrading:type:

Device firmware upgrading 固件升级中代理回调

- (void)deviceFirmwareUpgrading:(TuyaSmartDevice *)device type:(NSInteger)type

Parameters

device

instance

type

device type

Discussion

Device firmware upgrading 固件升级中代理回调

Declared In

TuyaSmartDevice.h