model

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: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SHUTDOWN = "shutdown"
	STOP     = "stop"
	REGISTER = "register"
	INIT     = "init"
	START    = "start"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CMD

type CMD struct {
	CmdName CommandName     `json:"cmd"`
	Payload json.RawMessage `json:"payload"`
}

type CommandName

type CommandName string

type Gateway

type Gateway struct {
	Nodes      []*Node
	NsAddress  string
	MacAddress lorawan.EUI64
}

type Init

type Init struct {
	NsAddress         string    `json:"nsAddress"`
	NbGateway         int       `json:"nbGatewayPerLorhammer"`
	NbNode            [2]int    `json:"nbNodePerGateway"`
	ScenarioSleepTime [2]string `json:"scenarioSleepTime"`
	GatewaySleepTime  [2]string `json:"gatewaySleepTime"`
	AppsKey           string    `json:"appskey"`
	Nwskey            string    `json:"nwskey"`
	WithJoin          bool      `json:"withJoin"`
	Payloads          []string  `json:"payloads"`
}

type Node

type Node struct {
	DevAddr       lorawan.DevAddr
	DevEUI        lorawan.EUI64
	AppEUI        lorawan.EUI64
	AppKey        lorawan.AES128Key
	AppSKey       lorawan.AES128Key
	NwSKey        lorawan.AES128Key
	JoinedNetwork bool
	Payload       string
}

type Register

type Register struct {
	ScenarioUUID  string    `json:"scenarioid"`
	Gateways      []Gateway `json:"gateways"`
	CallBackTopic string    `json:"callBackTopic"`
}

type Start

type Start struct {
	ScenarioUUID string `json:"scenarioid"`
}

Jump to

Keyboard shortcuts

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