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

Struct that represents a GATT characteristic descriptor.

Summary

Functions

Create a characteristic with fields taken from the map args.

Types

t()

@opaque t()

Functions

new(args)

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