Tuya iOS Smart Life App SDK 5.15.0
ThingSmartRouterActivator Class Reference

#import <ThingSmartRouterActivator.h>

Inheritance diagram for ThingSmartRouterActivator:

Instance Methods

(void) - getTokenSuccess:failure:
 
(void) - startDiscoverRouterWithDevIds:type:timeout:success:failure:
 
(void) - startDiscoverRouterWithDevIds:token:type:timeout:success:failure:
 
(void) - stopDiscover
 Stops scanning for devices. More...
 
(void) - getTokenSuccess:failure:
 
(void) - startDiscoverRouterWithDevIds:type:timeout:success:failure:
 
(void) - startDiscoverRouterWithDevIds:token:type:timeout:success:failure:
 
(void) - stopDiscover
 Stops scanning for devices. More...
 
(NSArray< ThingSmartDeviceModel * > *) - autoActiveRouterDeviceListWithHomeId:
 
(NSArray< ThingSmartDeviceModel * > *) - autoActiveRouterDeviceListWithHomeId:
 
(void) - bindDeviceWithHomeId:devIds:success:failure:
 
(void) - bindDeviceWithHomeId:devIds:success:failure:
 

Properties

id< ThingSmartRouterActivatorDelegatedelegate
 Returns the delegate of ThingSmartRouterActivator. More...
 

Detailed Description

Definition at line 24 of file ThingSmartRouterActivator.h.

Method Documentation

◆ autoActiveRouterDeviceListWithHomeId: [1/2]

- (NSArray< ThingSmartDeviceModel * > *) autoActiveRouterDeviceListWithHomeId: (long long)  homeId

Returns all gateway router devices for the current home.

Parameters
homeIdThe home ID.
Returns
All home gateway router devices.

Provided by category ThingSmartRouterActivator(Home).

◆ autoActiveRouterDeviceListWithHomeId: [2/2]

- (NSArray< ThingSmartDeviceModel * > *) autoActiveRouterDeviceListWithHomeId: (long long)  homeId

Returns all gateway router devices for the current home.

Parameters
homeIdThe home ID.
Returns
All home gateway router devices.

Provided by category ThingSmartRouterActivator(Home).

◆ bindDeviceWithHomeId:devIds:success:failure: [1/2]

- (void) bindDeviceWithHomeId: (long long)  homeId
devIds: (NSArray< NSString * > *)  devIds
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds devices to a specified home.

Parameters
homeIdThe home ID.
devIdsA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRouterActivator(Home).

◆ bindDeviceWithHomeId:devIds:success:failure: [2/2]

- (void) bindDeviceWithHomeId: (long long)  homeId
devIds: (NSArray< NSString * > *)  devIds
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds devices to a specified home.

Parameters
homeIdThe home ID.
devIdsA list of device IDs.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

Provided by category ThingSmartRouterActivator(Home).

◆ getTokenSuccess:failure: [1/2]

- (void) getTokenSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the pairing token. This token is valid for 10 minutes.

Parameters
successCalled when the task is finished. ThingSuccessString is returned.
failureCalled when the task is interrupted by an error.

◆ getTokenSuccess:failure: [2/2]

- (void) getTokenSuccess: (ThingSuccessString success
failure: (ThingFailureError failure 

Returns the pairing token. This token is valid for 10 minutes.

Parameters
successCalled when the task is finished. ThingSuccessString is returned.
failureCalled when the task is interrupted by an error.

◆ startDiscoverRouterWithDevIds:token:type:timeout:success:failure: [1/2]

- (void) startDiscoverRouterWithDevIds: (NSArray< NSString * > *)  devIds
token: (NSString *)  token
type: (NSInteger)  type
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
tokenThe pairing token.
typeSpecifies whether to start scanning. Set the value to 0 to start scanning.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startDiscoverRouterWithDevIds:token:type:timeout:success:failure: [2/2]

- (void) startDiscoverRouterWithDevIds: (NSArray< NSString * > *)  devIds
token: (NSString *)  token
type: (NSInteger)  type
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
tokenThe pairing token.
typeSpecifies whether to start scanning. Set the value to 0 to start scanning.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startDiscoverRouterWithDevIds:type:timeout:success:failure: [1/2]

- (void) startDiscoverRouterWithDevIds: (NSArray< NSString * > *)  devIds
type: (NSInteger)  type
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
typeSpecifies whether to start scanning. Set the value to 0 to start scanning.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ startDiscoverRouterWithDevIds:type:timeout:success:failure: [2/2]

- (void) startDiscoverRouterWithDevIds: (NSArray< NSString * > *)  devIds
type: (NSInteger)  type
timeout: (NSTimeInterval)  timeout
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Starts to scan for devices.

Parameters
devIdsA list of device IDs.
typeSpecifies whether to start scanning. Set the value to 0 to start scanning.
timeoutThe timeout value. Unit: seconds. Default value: 100.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error.

◆ stopDiscover [1/2]

- (void) stopDiscover

Stops scanning for devices.

◆ stopDiscover [2/2]

- (void) stopDiscover

Stops scanning for devices.

Property Documentation

◆ delegate

- (id< ThingSmartRouterActivatorDelegate >) delegate
readwritenonatomicweak

Returns the delegate of ThingSmartRouterActivator.

Definition at line 27 of file ThingSmartRouterActivator.h.


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