Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { *request.Helper *Settings SID string // contains filtered or unexported fields }
FritzDECT connection
func NewConnection ¶
func NewConnection(uri, ain, user, password string) (*Connection, error)
NewConnection creates FritzDECT connection
func (*Connection) CurrentPower ¶
func (c *Connection) CurrentPower() (float64, error)
CurrentPower implements the api.Meter interface
func (*Connection) ExecCmd ¶
func (c *Connection) ExecCmd(function string) (string, error)
ExecCmd execautes an FritzDECT AHA-HTTP-Interface command
func (*Connection) TotalEnergy ¶
func (c *Connection) TotalEnergy() (float64, error)
CurrentPower implements the api.MeterEnergy interface
type Devicestats ¶
Devicestats structures getbasicdevicesstats command response (AHA-HTTP-Interface)
Click to show internal directories.
Click to hide internal directories.