Documentation
¶
Index ¶
Constants ¶
View Source
const ( DOWNLOADING Status = "Downloading" INSTALLING = "Installing" STARTING = "Starting" STOPPING = "Stopping" IDLE = "Idle" OFFLINE = "Offline" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
type Device struct {
Type `json:"type"`
LocalUUID string `json:"localUUID"`
UUID string `json:"uuid"`
Name string `json:"name"`
ApplicationUUID int `json:"applicationUUID"`
ApplicationName string `json:"applicationName"`
Commit string `json:"commit"`
TargetCommit string `json:"targetCommit"`
Status Status `json:"status"`
Progress float32 `json:"progress"`
RestartFlag bool `json:"restartFlag"`
Config interface{} `json:"config"`
Environment interface{} `json:"environment"`
}
Device contains all the variables needed to define a device
type Esp8266 ¶
type Esp8266 Device
Esp8266 is an ESP8266 based device https://en.wikipedia.org/wiki/ESP8266
type FOTA ¶
type FOTA struct {
// contains filtered or unexported fields
}
FOTA contains all the variables needed during the firmware-over-the-air update process
type Interface ¶
type Interface interface {
String() string
Update(path string) error
Online() (bool, error)
Restart() error
}
Interface defines the common functions a device must implement
Click to show internal directories.
Click to hide internal directories.