qalcosonic

package
v0.0.0-...-2844c96 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTimeTooFarOff = fmt.Errorf("sensor time is too far off in the future")

Functions

func Decoder

func Decoder(ctx context.Context, deviceID string, e application.SensorEvent) ([]lwm2m.Lwm2mObject, error)

Types

type AlarmPacketPayload

type AlarmPacketPayload struct {
	Timestamp  time.Time
	StatusCode uint8
	Messages   []string
}

type QalcosonicDeltaVolume

type QalcosonicDeltaVolume struct {
	CumulatedVolume float64
	DeltaVolume     float64
	Timestamp       time.Time
}

type QalcosonicPayload

type QalcosonicPayload struct {
	CurrentVolume float64
	Deltas        []QalcosonicDeltaVolume
	FrameVersion  uint8
	Messages      []string
	StatusCode    uint8
	Temperature   *uint16
	Timestamp     time.Time
	Type          string
}

Jump to

Keyboard shortcuts

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