HAP.Characteristic (HAP v0.2.1) View Source

Functions to aid in the manipulation of characteristics tuples

Link to this section Summary

Types

t()

Represents a single characteristic consisting of a static definition and a value source

The resolved value of a characteristic

Represents a source for a characteristic value. May be either a static literal or a {mod, opts} tuple which is consulted when reading / writing a characteristic

Link to this section Types

Specs

t() :: {module(), value_source()}

Represents a single characteristic consisting of a static definition and a value source

Specs

value() :: any()

The resolved value of a characteristic

Specs

value_source() ::
  value() | {HAP.ValueStore.t(), [{:value_opts, HAP.ValueStore.opts()}]}

Represents a source for a characteristic value. May be either a static literal or a {mod, opts} tuple which is consulted when reading / writing a characteristic