Documentation ¶
Index ¶
- Constants
- type EventFunc
- type PostFunction
- type Wattpilot
- func (w *Wattpilot) Connect() (bool, error)
- func (w *Wattpilot) GetCurrents() (float64, float64, float64, error)
- func (w *Wattpilot) GetHost() string
- func (w *Wattpilot) GetName() string
- func (w *Wattpilot) GetPower() (float64, error)
- func (w *Wattpilot) GetProperty(name string) (interface{}, error)
- func (w *Wattpilot) GetRFID() (string, error)
- func (w *Wattpilot) GetSerial() string
- func (w *Wattpilot) IsInitialized() bool
- func (w *Wattpilot) SetCurrent(current float64) error
- func (w *Wattpilot) SetProperty(name string, value interface{}) error
- func (w *Wattpilot) Status() (map[string]interface{}, error)
- func (w *Wattpilot) StatusInfo()
Constants ¶
View Source
const (
MAX_RECONNECT_RETRIES = 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostFunction ¶
type Wattpilot ¶
type Wattpilot struct { Reconnect bool // contains filtered or unexported fields }
func (*Wattpilot) GetCurrents ¶
func (*Wattpilot) GetProperty ¶
func (*Wattpilot) IsInitialized ¶
func (*Wattpilot) SetCurrent ¶
func (*Wattpilot) SetProperty ¶
func (*Wattpilot) StatusInfo ¶
func (w *Wattpilot) StatusInfo()
Click to show internal directories.
Click to hide internal directories.