Library for communicating with Tapo P100 smart plug.
plug := p100.New("192.168.0.100", "[email protected]", "password")
if err := device.Handshake(); err != nil {
log.Panic(err)
}
if err := device.Login(); err != nil {
log.Panic(err)
}
device.Switch(false)
deviceInfo, err := device.GetDeviceInfo()