mapperpacket

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiscoveryPacket

type DiscoveryPacket struct {
	MapperPacket
}

func MustNewDiscoveryPacketFromBytes added in v1.1.1

func MustNewDiscoveryPacketFromBytes(phy []byte) *DiscoveryPacket

func MustNewDiscoveryPacketFromBytesFromString added in v1.1.1

func MustNewDiscoveryPacketFromBytesFromString(base64Phy string) *DiscoveryPacket

func NewDiscoveryPacketFromBytes

func NewDiscoveryPacketFromBytes(phy []byte) (*DiscoveryPacket, error)

func (*DiscoveryPacket) GnssSecurityStatus added in v1.0.8

func (dp *DiscoveryPacket) GnssSecurityStatus() uint8

func (*DiscoveryPacket) Height added in v1.0.8

func (dp *DiscoveryPacket) Height() int32

func (*DiscoveryPacket) LatLon

func (dp *DiscoveryPacket) LatLon() (int32, int32)

func (*DiscoveryPacket) LatLonFloat

func (dp *DiscoveryPacket) LatLonFloat() (float64, float64)

func (*DiscoveryPacket) Spoofing added in v1.0.8

func (dp *DiscoveryPacket) Spoofing() uint8

func (*DiscoveryPacket) TOW added in v1.0.8

func (dp *DiscoveryPacket) TOW() uint32

func (*DiscoveryPacket) Version added in v1.0.8

func (dp *DiscoveryPacket) Version() uint8

type DownlinkConfirmationPacket

type DownlinkConfirmationPacket struct {
	MapperPacket
}

func NewDownlinkConfirmationPacketFromBytes

func NewDownlinkConfirmationPacketFromBytes(phy []byte) (*DownlinkConfirmationPacket, error)

func (*DownlinkConfirmationPacket) Battery

func (dcp *DownlinkConfirmationPacket) Battery() uint8

func (*DownlinkConfirmationPacket) Challenge

func (dcp *DownlinkConfirmationPacket) Challenge() []byte

func (*DownlinkConfirmationPacket) Flags

func (dcp *DownlinkConfirmationPacket) Flags() uint8

func (*DownlinkConfirmationPacket) Rssi

func (dcp *DownlinkConfirmationPacket) Rssi() int

func (*DownlinkConfirmationPacket) Snr

func (dcp *DownlinkConfirmationPacket) Snr() int

func (*DownlinkConfirmationPacket) Version

func (dcp *DownlinkConfirmationPacket) Version() uint8

type DownlinkTransmitPacket

type DownlinkTransmitPacket struct {
	MapperPacket
}

func NewDownlinkTransmitPacket

func NewDownlinkTransmitPacket() *DownlinkTransmitPacket

func (DownlinkTransmitPacket) SetChallenge

func (dtp DownlinkTransmitPacket) SetChallenge(challenge []byte)

type MapperPacket

type MapperPacket struct {
	// contains filtered or unexported fields
}

func (MapperPacket) DevAddr

func (mp MapperPacket) DevAddr() lorawan.DevAddr

func (MapperPacket) Payload

func (mp MapperPacket) Payload() []byte

func (MapperPacket) Phy

func (mp MapperPacket) Phy() []byte

func (MapperPacket) SetDevAddr

func (mp MapperPacket) SetDevAddr(devAddr lorawan.DevAddr)

func (MapperPacket) SetFPort

func (mp MapperPacket) SetFPort(fport uint8)

func (MapperPacket) SetFType

func (mp MapperPacket) SetFType(ftype uint8)

Jump to

Keyboard shortcuts

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