yoda1

package
v0.0.0-...-f1ac19f Latest Latest
Warning

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

Go to latest
Published: May 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const DeviceBtName = "Yoda1"

Variables

This section is empty.

Functions

This section is empty.

Types

type ScaleData

type ScaleData struct {
	WeightKG float32
}

type YodaDevice

type YodaDevice struct {
	MacAddr string
	Rssi    int16
	Data    ScaleData
	// contains filtered or unexported fields
}

func Discover

func Discover(timeout time.Duration) (yodaDevices []YodaDevice, warnings []error, err error)

func (YodaDevice) IsValid

func (y YodaDevice) IsValid() bool

func (YodaDevice) WatchEvents

func (y YodaDevice) WatchEvents() (<-chan ScaleData, error)

Jump to

Keyboard shortcuts

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