Hi! Great work on this project! I saw in the ReadMe that you were looking to get the packet data that's transmitted to the outlet during setup while the outlet is in AP mode. I got a capture of the data below:
Packet sent to plug:
{"uri":"\/beginConfigRequest","wifiID":"myssid","wifiPassword":"mywifipassword","account":"myetekcity@account.com","wifiBssid":"aa:bb:cc:11:22:33","key":123456789,"serverIP":"104.200.30.164","ip":"","wifiGateway":"","wifiDNS":""}
- The wifiBssid is the mac address of the wifi AP with myssid.
- The account field is the email used for my etekcity account.
- The key seems to be something that is related to my etekcity account but I'm not 100% sure.
- The serverIP seems to be the server the plug talks to for requests. It resolves as a Linode-US machine that seems to be on par with the other requests that the VeSync app sends request to.
Packet reply from plug:
%{"uri":"/beginConfigReply","err":"0"}
Hopefully this helps create a way to set up these devices without the need of the app. I'm going to grab your code and set it up and see if I can help modify it to include the ability to setup a device put into AP mode.
Hi! Great work on this project! I saw in the ReadMe that you were looking to get the packet data that's transmitted to the outlet during setup while the outlet is in AP mode. I got a capture of the data below:
Packet sent to plug:
{"uri":"\/beginConfigRequest","wifiID":"myssid","wifiPassword":"mywifipassword","account":"myetekcity@account.com","wifiBssid":"aa:bb:cc:11:22:33","key":123456789,"serverIP":"104.200.30.164","ip":"","wifiGateway":"","wifiDNS":""}Packet reply from plug:
%{"uri":"/beginConfigReply","err":"0"}Hopefully this helps create a way to set up these devices without the need of the app. I'm going to grab your code and set it up and see if I can help modify it to include the ability to setup a device put into AP mode.