#import <ThingSmartRouterActivator.h>
Definition at line 24 of file ThingSmartRouterActivator.h.
◆ autoActiveRouterDeviceListWithHomeId: [1/2]
Returns all gateway router devices for the current home.
- Parameters
-
- Returns
- All home gateway router devices.
Provided by category ThingSmartRouterActivator(Home).
◆ autoActiveRouterDeviceListWithHomeId: [2/2]
Returns all gateway router devices for the current home.
- Parameters
-
- Returns
- All home gateway router devices.
Provided by category ThingSmartRouterActivator(Home).
◆ bindDeviceWithHomeId:devIds:success:failure: [1/2]
Adds devices to a specified home.
- Parameters
-
homeId | The home ID. |
devIds | A list of device IDs. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRouterActivator(Home).
◆ bindDeviceWithHomeId:devIds:success:failure: [2/2]
Adds devices to a specified home.
- Parameters
-
homeId | The home ID. |
devIds | A list of device IDs. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
Provided by category ThingSmartRouterActivator(Home).
◆ getTokenSuccess:failure: [1/2]
Returns the pairing token. This token is valid for 10 minutes.
- Parameters
-
success | Called when the task is finished. ThingSuccessString is returned. |
failure | Called when the task is interrupted by an error. |
◆ getTokenSuccess:failure: [2/2]
Returns the pairing token. This token is valid for 10 minutes.
- Parameters
-
success | Called when the task is finished. ThingSuccessString is returned. |
failure | Called 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
-
devIds | A list of device IDs. |
token | The pairing token. |
type | Specifies whether to start scanning. Set the value to 0 to start scanning. |
timeout | The timeout value. Unit: seconds. Default value: 100. |
success | Called when the task is finished. |
failure | Called 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
-
devIds | A list of device IDs. |
token | The pairing token. |
type | Specifies whether to start scanning. Set the value to 0 to start scanning. |
timeout | The timeout value. Unit: seconds. Default value: 100. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
◆ startDiscoverRouterWithDevIds:type:timeout:success:failure: [1/2]
Starts to scan for devices.
- Parameters
-
devIds | A list of device IDs. |
type | Specifies whether to start scanning. Set the value to 0 to start scanning. |
timeout | The timeout value. Unit: seconds. Default value: 100. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
◆ startDiscoverRouterWithDevIds:type:timeout:success:failure: [2/2]
Starts to scan for devices.
- Parameters
-
devIds | A list of device IDs. |
type | Specifies whether to start scanning. Set the value to 0 to start scanning. |
timeout | The timeout value. Unit: seconds. Default value: 100. |
success | Called when the task is finished. |
failure | Called when the task is interrupted by an error. |
◆ stopDiscover [1/2]
Stops scanning for devices.
◆ stopDiscover [2/2]
Stops scanning for devices.
◆ delegate
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartActivatorCoreKit/Build/ThingSmartActivatorCoreKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartActivatorCoreKit.framework/Headers/ThingSmartRouterActivator.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartActivatorCoreKit/Build/ThingSmartActivatorCoreKit.xcframework/ios-arm64/ThingSmartActivatorCoreKit.framework/Headers/ThingSmartRouterActivator.h