A specific characteristic of a service, like the brightness of a dimmable light, or its color temperature.
- iOS 8.0+
- tvOS 10.0+
- watchOS 2.0+
HMCharacteristic instance represents an aspect of a service that provides data, or that your app can control.
Characteristics have a
properties array that indicates attributes like readability, writability, and user-visibility. They also have a
characteristic property that tells your app what the characteristic controls or describes. Device manufacturers can use one of the standard types, given in Characteristic Types, or they can create custom types.
Each characteristic has a
value that you can read or write. Some characteristics use plain numbers, Booleans, or strings. Others have application specific meanings declared in enumerations associated with the given characteristic type. The characteristic’s
metadata can help your app interpret the value.