Tuya iOS Smart Life App SDK 5.15.0
<ThingSmartActivatorDelegate> Protocol Reference

#import <ThingSmartActivator.h>

Inheritance diagram for <ThingSmartActivatorDelegate>:

Instance Methods

(void) - activator:didReceiveDevice:error:
 
(void) - deviceStateError:
 
(void) - activator:didDiscoverWifiList:error:
 
(void) - activator:didReceiveDevice:step:error:
 
(void) - activator:didFindGatewayWithDeviceId:productId:
 
(long long) - activatorGetHomeId:
 
(void) - activator:didPassWIFIToSecurityLevelDeviceWithUUID:
 
(void) - meshActivator:didReceiveDeviceId:meshId:error:
 
(void) - activator:didReceiveDevice:error:
 
(void) - deviceStateError:
 
(void) - activator:didDiscoverWifiList:error:
 
(void) - activator:didReceiveDevice:step:error:
 
(void) - activator:didFindGatewayWithDeviceId:productId:
 
(long long) - activatorGetHomeId:
 
(void) - activator:didPassWIFIToSecurityLevelDeviceWithUUID:
 
(void) - meshActivator:didReceiveDeviceId:meshId:error:
 

Detailed Description

Definition at line 39 of file ThingSmartActivator.h.

Method Documentation

◆ activator:didDiscoverWifiList:error: [1/2]

- (void) activator: (ThingSmartActivator *)  activator
didDiscoverWifiList: (nullable NSArray *)  wifiList
error: (nullable NSError *)  error 
optional

Callback for device scan wifi list

Parameters
activatorinstance
wifiListwifi list
errorerror

◆ activator:didDiscoverWifiList:error: [2/2]

- (void) activator: (ThingSmartActivator *)  activator
didDiscoverWifiList: (nullable NSArray *)  wifiList
error: (nullable NSError *)  error 
optional

Callback for device scan wifi list

Parameters
activatorinstance
wifiListwifi list
errorerror

◆ activator:didFindGatewayWithDeviceId:productId: [1/2]

- (void) activator: (ThingSmartActivator *)  activator
didFindGatewayWithDeviceId: (nullable NSString *)  deviceId
productId: (nullable NSString *)  productId 
optional

Callback for the wired gateway discovery, wifi gateway, zigbee gateway.

Parameters
activatorinstance
deviceIdthe device id
productIdthe product id

◆ activator:didFindGatewayWithDeviceId:productId: [2/2]

- (void) activator: (ThingSmartActivator *)  activator
didFindGatewayWithDeviceId: (nullable NSString *)  deviceId
productId: (nullable NSString *)  productId 
optional

Callback for the wired gateway discovery, wifi gateway, zigbee gateway.

Parameters
activatorinstance
deviceIdthe device id
productIdthe product id

◆ activator:didPassWIFIToSecurityLevelDeviceWithUUID: [1/2]

- (void) activator: (ThingSmartActivator *)  activator
didPassWIFIToSecurityLevelDeviceWithUUID: (NSString *)  uuid 
optional

Callback for the device which has Security Level info, while AP pairing . Notice: When this function called, you can judge whether the SSID of the current phone is the same as the one the user selected before. If the SSID is the same then call the -continueConfigSecurityLevelDevice method to continue. If the SSID is different, remind the user to change the same one.

Parameters
activatorinstance
uuidthe uuid

◆ activator:didPassWIFIToSecurityLevelDeviceWithUUID: [2/2]

- (void) activator: (ThingSmartActivator *)  activator
didPassWIFIToSecurityLevelDeviceWithUUID: (NSString *)  uuid 
optional

Callback for the device which has Security Level info, while AP pairing . Notice: When this function called, you can judge whether the SSID of the current phone is the same as the one the user selected before. If the SSID is the same then call the -continueConfigSecurityLevelDevice method to continue. If the SSID is different, remind the user to change the same one.

Parameters
activatorinstance
uuidthe uuid

◆ activator:didReceiveDevice:error: [1/2]

- (void) activator: (ThingSmartActivator *)  activator
didReceiveDevice: (nullable ThingSmartDeviceModel *)  deviceModel
error: (nullable NSError *)  error 
required

Callback for distribution status update, wifi single product, zigbee gateway, zigbee sub device.

Parameters
activatorinstance
deviceModeldeviceModel
errorerror

◆ activator:didReceiveDevice:error: [2/2]

- (void) activator: (ThingSmartActivator *)  activator
didReceiveDevice: (nullable ThingSmartDeviceModel *)  deviceModel
error: (nullable NSError *)  error 
required

Callback for distribution status update, wifi single product, zigbee gateway, zigbee sub device.

Parameters
activatorinstance
deviceModeldeviceModel
errorerror

◆ activator:didReceiveDevice:step:error: [1/2]

- (void) activator: (ThingSmartActivator *)  activator
didReceiveDevice: (nullable ThingSmartDeviceModel *)  deviceModel
step: (ThingActivatorStep)  step
error: (nullable NSError *)  error 
optional

Callback for distribution status update, wifi single product, zigbee gateway, zigbee sub device.

Parameters
activatorinstance
deviceModeldeviceModel
stepactivator step
errorerror

◆ activator:didReceiveDevice:step:error: [2/2]

- (void) activator: (ThingSmartActivator *)  activator
didReceiveDevice: (nullable ThingSmartDeviceModel *)  deviceModel
step: (ThingActivatorStep)  step
error: (nullable NSError *)  error 
optional

Callback for distribution status update, wifi single product, zigbee gateway, zigbee sub device.

Parameters
activatorinstance
deviceModeldeviceModel
stepactivator step
errorerror

◆ activatorGetHomeId: [1/2]

- (long long) activatorGetHomeId: (ThingSmartActivator *)  activator
optional

Callback for requesting the home id

Parameters
activatorinstance

◆ activatorGetHomeId: [2/2]

- (long long) activatorGetHomeId: (ThingSmartActivator *)  activator
optional

Callback for requesting the home id

Parameters
activatorinstance

◆ deviceStateError: [1/2]

- (void) deviceStateError: (NSError *)  error
optional

Callback for device state error

Parameters
errorerror

◆ deviceStateError: [2/2]

- (void) deviceStateError: (NSError *)  error
optional

Callback for device state error

Parameters
errorerror

◆ meshActivator:didReceiveDeviceId:meshId:error: [1/2]

- (void) meshActivator: (ThingSmartActivator *)  activator
didReceiveDeviceId: (NSString *)  deviceId
meshId: (NSString *)  meshId
error: ("Use - instead. `deviceId` is `deviceModel.devId`)  [ThingSmartActivatorDelegate activator:didReceiveDevice:error:]
(`meshId` is `deviceModel.parentId`.")  __deprecated_msg 
optional

Callback for distribution status update mesh gateway, deprecated.

Parameters
activatorinstance
deviceIddevId
meshIdmeshId
errorerror
Deprecated:
This method is deprecated, Use activator:didReceiveDevice:error: instead deviceId is deviceModel.devId, meshId is deviceModel.parentId.

◆ meshActivator:didReceiveDeviceId:meshId:error: [2/2]

- (void) meshActivator: (ThingSmartActivator *)  activator
didReceiveDeviceId: (NSString *)  deviceId
meshId: (NSString *)  meshId
error: ("Use - instead. `deviceId` is `deviceModel.devId`)  [ThingSmartActivatorDelegate activator:didReceiveDevice:error:]
(`meshId` is `deviceModel.parentId`.")  __deprecated_msg 
optional

Callback for distribution status update mesh gateway, deprecated.

Parameters
activatorinstance
deviceIddevId
meshIdmeshId
errorerror
Deprecated:
This method is deprecated, Use activator:didReceiveDevice:error: instead deviceId is deviceModel.devId, meshId is deviceModel.parentId.

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