listener

package
v0.0.0-...-db8fc92 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Type      string  `json:"_type"`
	Acc       int     `json:"acc"`
	Alt       int     `json:"alt"`
	Batt      int     `json:"batt"`
	Bs        int     `json:"bs"`
	Conn      string  `json:"conn"`
	CreatedAt int64   `json:"created_at"`
	Lat       float64 `json:"lat"`
	Lon       float64 `json:"lon"`
	M         int     `json:"m"`
	Tid       string  `json:"tid"`
	Tst       int     `json:"tst"`
	Vac       int     `json:"vac"`
	Vel       int     `json:"vel"`
}

type Listener

type Listener struct {
	Client mqtt.Client
	// contains filtered or unexported fields
}

func InitListener

func InitListener(config *conf.Config, haSender *homeassistant.HASender) (*Listener, error)

func (*Listener) Disconnect

func (l *Listener) Disconnect()

Jump to

Keyboard shortcuts

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