wrapper

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2017 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

View Source
const LengthPayload = 256 // length of the payload in bytes

Variables

This section is empty.

Functions

This section is empty.

Types

type GPSCoordinates

type GPSCoordinates struct {
	Altitude  float64
	Latitude  float64
	Longitude float64
}

type Packet

type Packet struct {
	Freq       uint32               // central frequency of the IF chain (in Hz)
	IFChain    uint8                // by which IF chain was packet received
	Status     uint8                // status of the received Packet
	CountUS    uint32               // internal concentrator counter for timestamping, 1 microsecond resolution
	Time       int64                // GPS-determined time
	Gps        *gateway.GPSMetadata // GPS Metadata
	RFChain    uint8                // by which RF chain was packet received
	Modulation uint8                // modulation used by the packet
	Bandwidth  uint8                // modulation bandwidth (LoRa only)
	Datarate   uint32               // RX datarate of the packet (SF for LoRa)
	Coderate   uint8                // error-correcting code of the packet (LoRa only)
	RSSI       float32              // average packet RSSI in dB
	SNR        float32              // average packet SNR, in dB (LoRa only)
	MinSNR     float32              // minimum packet SNR, in dB (LoRa only)
	MaxSNR     float32              // maximum packet SNR, in dB (LoRa only)
	CRC        uint16               // CRC that was received in the payload
	Size       uint32               // Payload size in bytes
	Payload    []byte               // Buffer containing the payload, not yet base64-encoded
}

Packet describes the packets manipulated by the gateway

func (Packet) BandwidthString

func (p Packet) BandwidthString() (string, error)

func (Packet) CoderateString

func (p Packet) CoderateString() (string, error)

func (Packet) DatarateString

func (p Packet) DatarateString() (string, error)

Jump to

Keyboard shortcuts

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