models

package
v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 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 BySignalStrength

type BySignalStrength []*gw.UplinkRXInfo

BySignalStrength implements sort.Interface for []gw.UplinkRXInfo based on signal strength.

func (BySignalStrength) Len

func (s BySignalStrength) Len() int

func (BySignalStrength) Less

func (s BySignalStrength) Less(i, j int) bool

func (BySignalStrength) Swap

func (s BySignalStrength) Swap(i, j int)

type RXInfo

type RXInfo struct {
	MAC               lorawan.EUI64
	Time              *time.Time
	TimeSinceGPSEpoch *gw.Duration
	Timestamp         uint32
	RSSI              int
	LoRaSNR           float64
	Board             int
	Antenna           int
	RFChain           int
	Channel           int
}

RXInfo defines the RX related metadata (for each receiving gateway).

type RXInfoSet

type RXInfoSet []RXInfo

RXInfoSet implements a sortable slice of RXInfo elements. First it is sorted by LoRaSNR, within the sub-set where LoRaSNR > maxSNRForSort, it will sort by RSSI.

type RXPacket

type RXPacket struct {
	DR         int
	PHYPayload lorawan.PHYPayload
	TXInfo     *gw.UplinkTXInfo
	RXInfoSet  []*gw.UplinkRXInfo
}

RXPacket contains a received PHYPayload together with its RX metadata.

Jump to

Keyboard shortcuts

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