Documentation
¶
Index ¶
Constants ¶
View Source
const ( TPLINK_API_PORT = "9999" TPLINK_API_PORT_INT = 9999 TPLINK_API_INFO = "{\"system\":{\"get_sysinfo\":{}}}" TPLINK_API_RELAY_ON = "{\"system\":{\"set_relay_state\":{\"state\":1}}}" TPLINK_API_RELAY_OFF = "{\"system\":{\"set_relay_state\":{\"state\":0}}}" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scan ¶
type Scan struct {
Db *Database
}
func (*Scan) FindFirstIP ¶
type TplinkInfo ¶
type TplinkInfo struct {
System struct {
GetSysInfo struct {
ErrorCode int `json:"err_code"`
SwVersion string `json:"sw_ver"`
HwVersion string `json:"hw_ver"`
Type string `json:"type"`
Model string `json:"model"`
Mac string `json:"mac"`
DeviceId string `json:"deviceId"`
HwID string `json:"hwId"`
FwID string `json:"fwId"`
OemId string `json:"oemId"`
Alias string `json:"alias"`
DevName string `json:"dev_name"`
IconHash string `json:"icon_hash"`
RelayState int `json:"relay_state"`
OnTime int `json:"on_time"`
ActiveMode string `json:"active_mode"`
Feature string `json:"feature"`
Updating int `json:"updating"`
Rssi int `json:"rssi"`
LedOff int `json:"led_off"`
Latitude float32 `json:"latitude"`
Longitude float32 `json:"longitude"`
} `json:"get_sysinfo"`
} `json:"system"`
}
Click to show internal directories.
Click to hide internal directories.