Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client BaseURL string Logger *log.Logger Key string // contains filtered or unexported fields }
Client is used to connect to the Meross Client
func (*Client) GetSupportedDevices ¶
GetSupportedDevices connects to the Meross API and returns a slice of Device objects. This method can only be called after a successful call to Login.
type Device ¶
type Device struct { Name string `json:"devName"` Channels []Channel `json:"channels"` UUID string `json:"uuid"` Type string `json:"deviceType"` Domain string `json:"domain"` Region string `json:"region"` // contains filtered or unexported fields }
Device contains the information specific to a particular Meross device.
func (*Device) Connect ¶
Connect establishes a connection using MQTT http://mqtt.org over TCP sockets to allow the user to send signals to the device.
func (*Device) Disconnect ¶
func (d *Device) Disconnect()
Disconnect closes the connection to the upstream server
Source Files ¶
Click to show internal directories.
Click to hide internal directories.