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

#import <ThingSmartHomeKitConfigProtocol.h>

Inheritance diagram for <ThingSmartHomeKitConfigProtocol>:
ThingSmartHomeKitConfigBleUtil ThingSmartHomeKitConfigBleUtil ThingSmartHomeKitConfigWifiUtil ThingSmartHomeKitConfigWifiUtil

Instance Methods

(void) - startConfigDevice:bleAdv:timeout:homeId:success:failure:
 
(void) - stopConfigDevice
 Stop configuring device to cloud. More...
 
(BOOL) - isBLEDevicePairable:
 
(void) - startConfigDevice:bleAdv:timeout:homeId:success:failure:
 
(void) - stopConfigDevice
 Stop configuring device to cloud. More...
 
(BOOL) - isBLEDevicePairable:
 

Detailed Description

Definition at line 14 of file ThingSmartHomeKitConfigProtocol.h.

Method Documentation

◆ isBLEDevicePairable: [1/2]

- (BOOL) isBLEDevicePairable: (NSData *)  advertisingData
optional

configout bleDeice is pairable @parm bleAdv advertisingData

◆ isBLEDevicePairable: [2/2]

- (BOOL) isBLEDevicePairable: (NSData *)  advertisingData
optional

configout bleDeice is pairable @parm bleAdv advertisingData

◆ startConfigDevice:bleAdv:timeout:homeId:success:failure: [1/2]

- (void) startConfigDevice: (ThingSmartHomeKitDevice *)  device
bleAdv: (NSData *)  bleAdv
timeout: (NSTimeInterval)  timeout
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (void(^)(NSError *error))  failure 

Configure devices to connect to the cloud.

Parameters
deviceshould not nil, device should be reachable and is Thing Inc device.
timeouttypically 90-120 seconds
homeIdID of ThingSmartHomeModel
successdevice is online
failurethere may be multiple reasons for failure
Note
If want access to HomeKit, must have privacy permission first, can invoke [ThingSmartHomeKitUtil checkHomeKitPermissionWithCompletionHandler] to detect permission.

◆ startConfigDevice:bleAdv:timeout:homeId:success:failure: [2/2]

- (void) startConfigDevice: (ThingSmartHomeKitDevice *)  device
bleAdv: (NSData *)  bleAdv
timeout: (NSTimeInterval)  timeout
homeId: (long long)  homeId
success: (void(^)(ThingSmartDeviceModel *deviceModel))  success
failure: (void(^)(NSError *error))  failure 

Configure devices to connect to the cloud.

Parameters
deviceshould not nil, device should be reachable and is Thing Inc device.
timeouttypically 90-120 seconds
homeIdID of ThingSmartHomeModel
successdevice is online
failurethere may be multiple reasons for failure
Note
If want access to HomeKit, must have privacy permission first, can invoke [ThingSmartHomeKitUtil checkHomeKitPermissionWithCompletionHandler] to detect permission.

◆ stopConfigDevice [1/2]

- (void) stopConfigDevice

Stop configuring device to cloud.

◆ stopConfigDevice [2/2]

- (void) stopConfigDevice

Stop configuring device to cloud.


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