downlink

package
v0.0.0-...-7a68c68 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InformationDownlink struct {
	MType         lorawan.MType     `json:"-"` //per FPending
	FOptsReceived []lorawan.Payload `json:"-"`
	ACK           bool              `json:"-"`
	DataPayload   []byte            `json:"-"`
	FPending      bool              `json:"-"`
	DwellTime     lorawan.DwellTime `json:"-"`
}

Downlink set with info of resp

func GetDownlink(phy lorawan.PHYPayload, disableCounter bool, counter uint32, NwkSKey [16]byte, AppSKey [16]byte) (*InformationDownlink, error)
type ReceivedDownlink struct {
	Mutex    sync.Mutex
	Downlink *lorawan.PHYPayload
	Notify   *sync.Cond
	IsOpen   bool
}

func (*ReceivedDownlink) Close

func (b *ReceivedDownlink) Close()

func (*ReceivedDownlink) Open

func (b *ReceivedDownlink) Open()

func (*ReceivedDownlink) Pull

func (b *ReceivedDownlink) Pull() *lorawan.PHYPayload

func (*ReceivedDownlink) Push

func (b *ReceivedDownlink) Push(data *lorawan.PHYPayload)

func (*ReceivedDownlink) Signal

func (b *ReceivedDownlink) Signal()

func (*ReceivedDownlink) Wait

func (b *ReceivedDownlink) Wait()

Jump to

Keyboard shortcuts

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