enviot

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decoder

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

Types

type EnviotPayload

type EnviotPayload struct {
	Payload struct {
		Battery      *int     `json:"battery,omitempty"`
		Humidity     *float32 `json:"humidity,omitempty"`
		SensorStatus int      `json:"sensorStatus"`
		SnowHeight   *int     `json:"snowHeight,omitempty"`
		Temperature  *float32 `json:"temperature,omitempty"`
	} `json:"payload"`
}

Jump to

Keyboard shortcuts

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