exampleapp

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(_ context.Context, client hass.MQTTClient)

Clear is the function that is called by the agent when we run the agent's clear command. It will remove all the sensors, button and their data from Home Assistant.

func Run

func Run(ctx context.Context, client hass.MQTTClient)

Run is the function that the agent calls to start our app. In it, we create our app struct, register our app (if needed), listen for our button press, then set up a loop to send our sensor data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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