inkbird

package
v0.0.0-...-d41c5fe Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultThermometerDataProvider = &ThermometerDataProvider{lastData: make(map[string]*ThermometerData)}

Functions

func Scan

func Scan(ctx context.Context) error

Types

type ThermometerData

type ThermometerData struct {
	Time        time.Time
	Temperature float32
	Humidity    float32
	External    bool
	Battery     int8
	RSSI        int16
}

func Read

func Read(ctx context.Context, id string) (*ThermometerData, error)

type ThermometerDataProvider

type ThermometerDataProvider struct {
	// contains filtered or unexported fields
}

func (*ThermometerDataProvider) Get

func (*ThermometerDataProvider) Start

func (*ThermometerDataProvider) Stop

func (t *ThermometerDataProvider) Stop() error

Jump to

Keyboard shortcuts

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