Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { GetDevicesInfo() ([]DeviceInfo, error) GetHS100(alias string) (HS100, error) GetHS103(alias string) (HS103, error) GetHS110(alias string) (HS110, error) GetHS200(alias string) (HS200, error) }
API Public interface to get information, devices and interact with them
type DeviceInfo ¶
type DeviceInfo struct { SwVer string `json:"sw_ver,omitempty"` HwVer string `json:"hw_ver,omitempty"` Type string `json:"type,omitempty"` Model string `json:"model,omitempty"` Mac string `json:"mac,omitempty"` DeviceID string `json:"deviceId,omitempty"` HwID string `json:"hwId,omitempty"` FwID string `json:"fwId,omitempty"` OemID string `json:"oemId,omitempty"` Alias string `json:"alias,omitempty"` DeviceName string `json:"dev_name,omitempty"` IconHash string `json:"icon_hash,omitempty"` ActiveMode string `json:"active_mode,omitempty"` Feature string `json:"feature,omitempty"` RelayState int `json:"relay_state,omitempty"` OnTime int `json:"on_time,omitempty"` Updating int `json:"updating,omitempty"` Rssi int `json:"rssi,omitempty"` LedOff int `json:"led_off,omitempty"` Latitude float64 `json:"latitude,omitempty"` Longitude float64 `json:"longitude,omitempty"` }
DeviceInfo Get all the information about a device
func (DeviceInfo) String ¶
func (d DeviceInfo) String() string
Click to show internal directories.
Click to hide internal directories.