Documentation ¶
Index ¶
- Constants
- type PostFunction
- type Pubsub
- type Wattpilot
- func (w *Wattpilot) Alias() []string
- func (w *Wattpilot) Connect() (bool, error)
- func (w *Wattpilot) Disconnect()
- func (w *Wattpilot) GetCurrents() (float64, float64, float64, error)
- func (w *Wattpilot) GetHost() string
- func (w *Wattpilot) GetName() string
- func (w *Wattpilot) GetNotifications(prop string) <-chan interface{}
- 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) GetVoltages() (float64, float64, float64, error)
- func (w *Wattpilot) IsInitialized() bool
- func (w *Wattpilot) LookupAlias(name string) string
- func (w *Wattpilot) Properties() []string
- func (w *Wattpilot) SetCurrent(current float64) error
- func (w *Wattpilot) SetProperty(name string, value interface{}) error
- func (w *Wattpilot) StatusInfo()
Constants ¶
View Source
const ( MAX_RECONNECT_RETRIES = 5 // re-tries PING_TIMEOUT = 10 // seconds CONTEXT_TIMEOUT = 60 // seconds )
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) Disconnect ¶ added in v1.2.0
func (w *Wattpilot) Disconnect()
func (*Wattpilot) GetCurrents ¶
func (*Wattpilot) GetNotifications ¶ added in v1.3.0
func (*Wattpilot) GetProperty ¶
func (*Wattpilot) GetVoltages ¶ added in v1.1.1
func (*Wattpilot) IsInitialized ¶
func (*Wattpilot) LookupAlias ¶ added in v1.1.2
func (*Wattpilot) Properties ¶ added in v1.1.2
func (*Wattpilot) SetCurrent ¶
func (*Wattpilot) SetProperty ¶
func (*Wattpilot) StatusInfo ¶
func (w *Wattpilot) StatusInfo()
Click to show internal directories.
Click to hide internal directories.