semtechudp

package
v3.18.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package semtechudp implements the JSON configuration for the Semtech UDP Packet Forwarder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SX1301Conf  shared.SX1301Config `json:"SX1301_conf"`
	GatewayConf GatewayConf         `json:"gateway_conf"`
}

Config represents the full configuration for Semtech's UDP Packet Forwarder.

func Build

func Build(gateway *ttnpb.Gateway, store *frequencyplans.Store) (*Config, error)

Build builds a packet forwarder configuration for the given gateway, using the given frequency plan store.

type GatewayConf

type GatewayConf struct {
	GatewayID      string        `json:"gateway_ID,omitempty"`
	ServerAddress  string        `json:"server_address"`
	ServerPortUp   uint32        `json:"serv_port_up"`
	ServerPortDown uint32        `json:"serv_port_down"`
	Enabled        bool          `json:"serv_enabled,omitempty"` // only used inside servers
	Servers        []GatewayConf `json:"servers,omitempty"`
}

GatewayConf contains the configuration for the gateway's server connection.

Jump to

Keyboard shortcuts

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