lan

package
v0.0.0-...-0dca507 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct{}

Protocol implements uplink protocol for lora.

func (Protocol) Marshal

func (p Protocol) Marshal(message []byte) (model.Data, error)

Marshal marshals given lan byte message (in json format) into platform data structure.

func (Protocol) Name

func (p Protocol) Name() string

Name returns protocol unique name.

func (Protocol) RxTopic

func (p Protocol) RxTopic() string

RxTopic returns lan rx message topic.

func (Protocol) TxTopic

func (p Protocol) TxTopic() string

TxTopic returns lan tx message topic.

Jump to

Keyboard shortcuts

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