#import <ThingSmartHomeKitConfigProtocol.h>
◆ 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
-
device | should not nil, device should be reachable and is Thing Inc device. |
timeout | typically 90-120 seconds |
homeId | ID of ThingSmartHomeModel |
success | device is online |
failure | there 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
-
device | should not nil, device should be reachable and is Thing Inc device. |
timeout | typically 90-120 seconds |
homeId | ID of ThingSmartHomeModel |
success | device is online |
failure | there 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:
- /Users/humtong/Downloads/Pods_副本/ThingSmartAppleDeviceKit/Build/ThingSmartAppleDeviceKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartAppleDeviceKit.framework/Headers/ThingSmartHomeKitConfigProtocol.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartAppleDeviceKit/Build/ThingSmartAppleDeviceKit.xcframework/ios-arm64/ThingSmartAppleDeviceKit.framework/Headers/ThingSmartHomeKitConfigProtocol.h