View Source TpLink (tp_link v0.4.1)
Client library for interacting with Kasa/TP-Link smart home devices via either tplinkcloud.com or directly over the local network. See the README for examples.
Link to this section Summary
Functions
Sends a command to a device and returns the response. Use cloud_device/2
or local_device/2
to generate a device struct.
Creates a device struct for a device that is accessed through the cloud. Generate a session with
TpLink.Cloud.login/2
.
Returns the system info.
Create a device struct for a device that is accessed via the local Wifi network.
Link to this section Functions
Sends a command to a device and returns the response. Use cloud_device/2
or local_device/2
to generate a device struct.
Creates a device struct for a device that is accessed through the cloud. Generate a session with
TpLink.Cloud.login/2
.
Returns the system info.
Create a device struct for a device that is accessed via the local Wifi network.
options
Options
:timeout
(pos_integer/0
) - Timeout in milliseconds. The default value is5000
.