View Source HAP.Characteristic (HAP v0.6.0)

Functions to aid in the manipulation of characteristics tuples

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

Types

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

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

@type value() :: any()

The resolved value of a characteristic

@type 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