BlueHeron.GATT.Characteristic.Descriptor (blue_heron v0.4.1) View Source
Struct that represents a GATT characteristic descriptor.
Link to this section Summary
Link to this section Types
Specs
t()
Link to this section Functions
Specs
Create a characteristic with fields taken from the map args
.
The following fields are required:
permissions
: The characteristic descriptor property flags. Integer.
Example:
iex> BlueHeron.GATT.Characteristic.Descriptor.new(%{
...> value: 0x0001,
...> })
%BlueHeron.GATT.Characteristic.Descriptor{permissions: 2, value: <<0,0>>}