How to make provisioning Wi-Fi for Photon/P1 device in flutter without integrate SDK?

Hello everyone,

I have tried many times wifi provisioning for P1 device in flutter using SoftAp but I have getting issue in sending wifi credential with encrypted password and also I have used different encryption methods and I get response with code 200 but device can not connecting to Wifi. So I need help to resolve this issue in Flutter.

It's very tricky do debug because SoftAP doesn't return any useful error in the error response and there is no logging available from WICED, where it's implemented.

What I would do is:

  • Try the manual steps to make sure you are getting that part right.
  • Then add logging to your flutter code to make sure you're encrypting the data correctly. Take the encrypted string and add them to the manual steps and see if that works.
  • Finally keep using more and more of the steps in flutter instead of doing them manually until it works.

Also make sure you're not using WEP encryption on the real AP. There' s whole separate process to getting that to work.