lora

package
v0.0.0-...-3bd56f2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOG_GATEWAY = logrus.WithFields(logrus.Fields{"logger": "lorhammer/lora/gateway"})
View Source
var LOG_NODE = logrus.WithFields(logrus.Fields{"logger": "lorhammer/lora/node"})

Functions

func GetDevAddrFromDevEUI

func GetDevAddrFromDevEUI(devEUI lorawan.EUI64) lorawan.DevAddr

func GetGenericAES128Key

func GetGenericAES128Key() lorawan.AES128Key

func GetJoinRequestDataPayload

func GetJoinRequestDataPayload(node *model.Node) []byte

func GetPushDataPayload

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

func HandlePacket

func HandlePacket(data []byte) error

func Join

func Join(gateway *model.Gateway, prometheus tools.Prometheus, withJoin bool)

func NewGateway

func NewGateway(nbNode int, nsAddress string, appskey string, nwskey string, payloads []string) *model.Gateway

func NewNode

func NewNode(nwsKeyStr string, appsKeyStr string, payloads []string) *model.Node

func NewRxpk

func NewRxpk(data []byte) loraserver_structs.RXPK

func RandomEUI

func RandomEUI() lorawan.EUI64

func Start

func Start(gateway *model.Gateway, prometheus tools.Prometheus, fcnt uint32)

Types

type Packet

type Packet struct {
	Rxpk []loraserver_structs.RXPK `json:"rxpk,omitempty"`
}

func (Packet) Prepare

func (p Packet) Prepare(gateway *model.Gateway) ([]byte, error)

Jump to

Keyboard shortcuts

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