HAP.ServiceSource protocol (HAP v0.4.1) View Source

A protocol which allows for arbitrary service definitions to compile themselves into HAP.Service structs for use within HAP. This protocol allows HAP to expose pre-defined services such as HAP.Services.Lightbulb with fields reflecting the domain of the service, while allowing HAP to work internally with a service tree close to taht defined in the HomeKit specification

Link to this section Summary

Functions

Compile the given value into a HAP.Service struct

Link to this section Types

Link to this section Functions

Specs

compile(t()) :: HAP.Service.t()

Compile the given value into a HAP.Service struct