Closed SolarCTP closed 1 year 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.
Looks Good :)
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.