HMAccessory
's wrapped classes, defined some Thing Inc HomeKit Device properties
More...
#import <ThingSmartHomeKitDevice.h>
|
BOOL | reachable |
| A Boolean value indicating whether the accessory can be communicated with in the current network environment. More...
|
|
BOOL | bridged |
| This property indicates whether this accessory is behind a bridge. If it is TRUE, the accessory cannot be removed from the home directly. Only the bridge that owns this accessory can be removed and removing the bridge will remove this accessory from the home. More...
|
|
BOOL | isThingDevice |
| A Boolean value indicating whether the device is Thing Inc Device. More...
|
|
HMCharacteristic * | devId |
|
HMCharacteristic * | productID |
|
HMCharacteristic * | UUID |
|
HMCharacteristic * | token |
|
HMCharacteristic * | active |
|
HMCharacteristic * | mac |
| The BLE device mac address. More...
|
|
HMCharacteristic * | linkType |
| The BLE device link type value is "BLE". More...
|
|
HMCharacteristic * | bleAdv |
| The BLE Adv. More...
|
|
BOOL | isMatterDevice |
| A Boolean value indicating whether the device is Matter Device. More...
|
|
NSNumber * | matterNodeID |
| The node identifier used to identify the device on Apple’s Matter fabric. More...
|
|
HMAccessory * | accessory |
| Accessory is passed in through the initWithAccessory: More...
|
|
HMAccessory
's wrapped classes, defined some Thing Inc HomeKit Device properties
Definition at line 15 of file ThingSmartHomeKitDevice.h.
◆ initWithAccessory: [1/2]
- (instancetype) initWithAccessory: |
|
(HMAccessory *) |
accessory |
|
Wrapped with HMAccessory
object, init Tuy Inc Device characteristics
- Parameters
-
accessory | A home automation accessory, like a garage door opener or a thermostat. |
◆ initWithAccessory: [2/2]
- (instancetype) initWithAccessory: |
|
(HMAccessory *) |
accessory |
|
Wrapped with HMAccessory
object, init Tuy Inc Device characteristics
- Parameters
-
accessory | A home automation accessory, like a garage door opener or a thermostat. |
◆ isBLELinkType [1/2]
◆ isBLELinkType [2/2]
◆ updateWithCompletionHandler: [1/2]
- (void) updateWithCompletionHandler: |
|
(void(^)(NSError *_Nullable error)) |
handler |
|
Update all HMCharacteristic propertys.
- Parameters
-
handler | All update completed. |
- Note
- HMCharacteristic property should update to get the latest values.
◆ updateWithCompletionHandler: [2/2]
- (void) updateWithCompletionHandler: |
|
(void(^)(NSError *_Nullable error)) |
handler |
|
Update all HMCharacteristic propertys.
- Parameters
-
handler | All update completed. |
- Note
- HMCharacteristic property should update to get the latest values.
◆ accessory
- (HMAccessory *) accessory |
|
readnonatomicstrong |
◆ active
- (HMCharacteristic *) active |
|
readnonatomicstrong |
Status for configuring the device to connect to the cloud.
- Note
- Int Value. 0 is device not configured, 1 is device is start configuring. Invoke
readValueWithCompletionHandler:
get the latest value.
Definition at line 48 of file ThingSmartHomeKitDevice.h.
◆ bleAdv
- (HMCharacteristic *) bleAdv |
|
readnonatomicstrong |
◆ bridged
This property indicates whether this accessory is behind a bridge. If it is TRUE, the accessory cannot be removed from the home directly. Only the bridge that owns this accessory can be removed and removing the bridge will remove this accessory from the home.
Definition at line 25 of file ThingSmartHomeKitDevice.h.
◆ devId
- (HMCharacteristic *) devId |
|
readnonatomicstrong |
Device id, only generated after the cloud binding
- Note
- Invoke
readValueWithCompletionHandler:
get the latest value.
Definition at line 32 of file ThingSmartHomeKitDevice.h.
◆ isMatterDevice
◆ isThingDevice
◆ linkType
- (HMCharacteristic *) linkType |
|
readnonatomicstrong |
◆ mac
- (HMCharacteristic *) mac |
|
readnonatomicstrong |
◆ matterNodeID
- (NSNumber *) matterNodeID |
|
readnonatomiccopy |
◆ productID
- (HMCharacteristic *) productID |
|
readnonatomicstrong |
Identification of equipment categories.
- Note
- Invoke
readValueWithCompletionHandler:
get the latest value.
Definition at line 36 of file ThingSmartHomeKitDevice.h.
◆ reachable
A Boolean value indicating whether the accessory can be communicated with in the current network environment.
Definition at line 18 of file ThingSmartHomeKitDevice.h.
◆ token
- (HMCharacteristic *) token |
|
readnonatomicstrong |
Token for configuring the device to connect to the cloud.
- Note
- String value. If not confige to the cloud will nil. Invoke
readValueWithCompletionHandler:
get the latest value. Invoke writeValue:completionHandler:
to start configuring.
Definition at line 44 of file ThingSmartHomeKitDevice.h.
◆ UUID
- (HMCharacteristic *) UUID |
|
readnonatomicstrong |
Unique identification of the device.
- Note
- Invoke
readValueWithCompletionHandler:
get the latest value.
Definition at line 40 of file ThingSmartHomeKitDevice.h.
The documentation for this class was generated from the following files:
- /Users/humtong/Downloads/Pods_副本/ThingSmartAppleDeviceKit/Build/ThingSmartAppleDeviceKit.xcframework/ios-arm64_x86_64-simulator/ThingSmartAppleDeviceKit.framework/Headers/ThingSmartHomeKitDevice.h
- /Users/humtong/Downloads/Pods_副本/ThingSmartAppleDeviceKit/Build/ThingSmartAppleDeviceKit.xcframework/ios-arm64/ThingSmartAppleDeviceKit.framework/Headers/ThingSmartHomeKitDevice.h