fishbigger / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
567 stars 139 forks source link

add toggle function to turn on-off the device #71

Closed SolarCTP closed 1 year ago

SolarCTP commented 2 years ago

The toggleState function is a toggle switch. It checks for whether the device is powered on or off, then sets the opposite state. It should be useful to implement this feature into the library instead of leaving it up to every individual user.

fishbigger commented 1 year ago

Looks Good :)