configuration

package
v0.0.0-...-f3fabb5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ZNetworkConfiguration ZNetworkConfiguration
	MqttConfiguration     MqttConfiguration
	SerialConfiguration   SerialConfiguration
	PermitJoin            bool
	LogLevel              int // info=0, warn=1, error=2, debug=3
}

type ConfigurationService

type ConfigurationService interface {
	Update(updatedConfig Configuration) error
	GetConfiguration() Configuration
}

func Init

func Init(filename string) (ConfigurationService, error)

type MqttConfiguration

type MqttConfiguration struct {
	Address   string
	Port      uint16
	RootTopic string
	Username  string
	Password  string
}

type SerialConfiguration

type SerialConfiguration struct {
	PortName string
	BaudRate uint32
}

type ZNetworkConfiguration

type ZNetworkConfiguration struct {
	PANID         uint16
	ExtendedPANID uint64
	NetworkKey    [16]byte
	Channel       uint8
}

Jump to

Keyboard shortcuts

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