TuyaSmartTransferDelegate Protocol Reference

Conforms to NSObject
Declared in TuyaSmartSingleTransfer.h

– transfer:didUpdateConnectState: required method

When the connection state changes, the delegate will execute. 数据通道连接情况变化 当通道连接、断开连接等都会通过此方法回调,

- (void)transfer:(TuyaSmartSingleTransfer *)transfer didUpdateConnectState:(TuyaSmartTransferState)state

Parameters

transfer

transfer

state

TuyaSmartTransferState

Discussion

When the connection state changes, the delegate will execute. 数据通道连接情况变化 当通道连接、断开连接等都会通过此方法回调,

Declared In

TuyaSmartSingleTransfer.h

– transfer:didReciveDataWithDevId:data: required method

When received device data, the delegate will execute. 数据通道收到新数据

- (void)transfer:(TuyaSmartSingleTransfer *)transfer didReciveDataWithDevId:(NSString *)devId data:(NSData *)data

Parameters

transfer

transfer

devId

Device Id

data

Received Data

Discussion

When received device data, the delegate will execute. 数据通道收到新数据

Declared In

TuyaSmartSingleTransfer.h