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)
Click to show internal directories.
Click to hide internal directories.