fishbigger / TapoP100

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

The returned ssid is not the one of the network to which my P110 is connected #97

Open goofy2k opened 1 year ago

goofy2k commented 1 year ago

The smart plug returns "VmVyaG9lY2t4X2dsYXM=" as the ssid in the DeviceInfo. This is certainly not the ssid of my network.

I also doubt about the nickname. The program returns "U21hcnQtcGx1ZzU=". This is not the name that I have set in the TAPO app on my Android device.

tnmendes commented 1 year ago

This string is in the format base64, so if you decode "U21hcnQtcGx1ZzU=" you will get "Smart-plug5" https://www.base64decode.org/

adrianmmiller commented 1 year ago

yup, as in my example python script, these lines do the job there:

import base64

nickname = base64.b64decode(returnedData['result']['nickname']) nicknameDecoded = nickname.decode("utf-8") print ("Plug Name:", nicknameDecoded)

goofy2k commented 1 year ago

Thanks guys! Let's see if I can also see the correct ssid ;-)

goofy2k commented 1 year ago

That works OK ! Thanks for hiding my SSID :)))))