lora

package
v0.0.0-...-fd2512f Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPushDataPayload

func GetPushDataPayload(node *model.Node, fcnt uint32) ([]byte, int64, error)

GetPushDataPayload return the nextbyte arraypush data

Types

type LorhammerGateway

type LorhammerGateway struct {
	Nodes                 []*model.Node
	NsAddress             string
	MacAddress            lorawan.EUI64
	RxpkDate              int64
	PayloadsReplayMaxLaps int
	AllLapsCompleted      bool
	ReceiveTimeoutTime    time.Duration
}

LorhammerGateway : internal gateway for pointer receiver usage

func NewGateway

func NewGateway(nbNode int, init model.Init) *LorhammerGateway

NewGateway return a new gateway with node configured

func (LorhammerGateway) ConvertToGateway

func (gateway LorhammerGateway) ConvertToGateway() model.Gateway

ConvertToGateway : convert internal gateway to model gateway

func (*LorhammerGateway) Join

func (gateway *LorhammerGateway) Join(prometheus metrics.Prometheus, withJoin bool) error

Join send first pull datata to be discovered by network server Then send a JoinRequest packet if `withJoin` is set in scenario file

func (*LorhammerGateway) Start

func (gateway *LorhammerGateway) Start(prometheus metrics.Prometheus, fcnt uint32) error

Start send push data packet and listen for ack

Jump to

Keyboard shortcuts

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