Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Functions ¶
func GenerateTokenHash ¶
func ProbeConfigFile ¶
func ProbeConfigFile() error
A dry-run of the `RadConfigFile()` method used in the healthtest
func ReadConfigFile ¶
func ReadConfigFile() error
Reads the config file from disk, if the file does not exist (for example first run), a new one is created
func SetHardwareEnabled ¶
func SetHardwareEnabled(enabled bool)
func WriteConfig ¶
func WriteConfig() error
Writes the current state of the global config to the file on disk
Types ¶
type Config ¶
type Hardware ¶
type Hardware struct { HardwareEnabled bool `json:"hardwareEnabled"` RFDevicePin uint8 `json:"pin"` // The BCM pin to which a 433mhz sender is attached RFDeviceProtocol uint8 `json:"protocol"` RFDeviceRepeat uint8 `json:"repeat"` RFDevicePulselength uint16 `json:"pulseLength"` RFDeviceLength uint8 `json:"contentLength"` }
Documentation of following parameters: github.com/MikMuellerDev/rpirf
Click to show internal directories.
Click to hide internal directories.