Setting Wifi Credentials from another Photon

Hi everyone,

What i want to do is the following.

I used the “SoftAp HTTP Pages - Complete Example” from the Particle Reference web page to be able to set up the wifi credentials of a Photon through a browser, and its working great.

Now, lets say i have a Photon #1, already configured and working, which i want to use to set the wifi credentials of a second Photon #2.
So:

  • Photon #1 looks for available networks and finds the one called Photon-XXXX coming from Photon #2.
  • Photon #1 connects to that wifi
  • Photon #1 “connects” to the web page of the Photon #2 and set the credentials.

Is this possible? how can i do it?

Thanks,