konnected

package
v0.0.0-...-e2aaeb7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2022 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Handler is registered with the HTTP platform it listens for Konnected devices and respond appropriately if the board doesn't get a 200 in response, it retries, and failing several retries, it reboots we will just say OK no matter what for now

Types

type Platform

type Platform struct {
	Running bool
}

Platform is the handle to the Konnected devices

func (Platform) AddAccessory

func (s Platform) AddAccessory(a *tfaccessory.TFAccessory)

AddAccessory adds a Konnected device and registers it with HC

func (Platform) Background

func (k Platform) Background()

func (Platform) GetAccessory

func (s Platform) GetAccessory(mac string) (*tfaccessory.TFAccessory, bool)

func (Platform) Shutdown

func (s Platform) Shutdown() platform.Control

Shutdown is called by the platform management to shut things down

func (Platform) Startup

func (s Platform) Startup(c *config.Config) platform.Control

Startup is called by the platform management to get things going

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL