lwm2m

package
v0.0.0-...-6b0bd56 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AirQualityURN  string = "urn:oma:lwm2m:ext:3428"
	HumidityURN    string = "urn:oma:lwm2m:ext:3304"
	TemperatureURN string = "urn:oma:lwm2m:ext:3303"
)

Variables

This section is empty.

Functions

func CreateAndSendAsLWM2M

func CreateAndSendAsLWM2M(ctx context.Context, sensors []domain.DeviceData, uniqueId int, url string, sender SenderFunc) error

func Send

func Send(ctx context.Context, url string, pack senml.Pack) error

Types

type SenderFunc

type SenderFunc = func(context.Context, string, senml.Pack) error

Jump to

Keyboard shortcuts

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