Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSwitchbotAPIClient ¶
func NewSwitchbotAPIClient() *switchbotAPIClient
NewSwitchbotAPIClient: Create a client to send to Switchbot's API.
Types ¶
type Devices ¶
type Devices struct { DeviceList []device `json:"deviceList"` //List of physical devices. InfraredRemoteList []infraredRemoteDevice `json:"infraredRemoteList"` //List of infrared devices. }
Devices: Includes a list of physical devices and a list of infrared devices.
func (Devices) GetDevices ¶
GetDevices: Retrieve all devices.
Click to show internal directories.
Click to hide internal directories.