BlueHeron.GATT.Characteristic.Descriptor (blue_heron v0.4.1) View Source

Struct that represents a GATT characteristic descriptor.

Link to this section Summary

Functions

Create a characteristic with fields taken from the map args.

Link to this section Types

Link to this section Functions

Specs

new(args :: map()) :: t()

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>>}