Best practice for having a client set WiFi credentials without App


#1

I’ve read through a few posts on setting WiFi credentials without the aid of the app such as this and this. These posts are both a bit old and convoluted and was wondering if there is an up-to-date recommendation?

The goal is to allow non-technical folks to change the WiFi credentials and (maybe) claim the device without needed to download an app. Is there a way to do this using just a website?


#2

The WiFi credentials is easiest done via SoftAP, but the the claiming is a bit more involved.
Two easy ways to do that without any app to download are claiming via Web IDE and/or via https://setup.particle.io


#3

Ahh okay. Thanks @ScruffR. So as long as I have pre-set the ID to belong to a product, I can just direct them to https://setup.particle.io to get started? And then once they’ve been setup, they can change WiFi credentials as needed using the SoftAP method? Do you have a good reference for how to use SoftAP to change credentials?


#4

The complete example in the docs does show how to include SoftAP in your code and the use is pretty straight forward:

  • put device in Listening Mode (blinking blue)
  • connect your computer or mobile device via WiFi to the exposed Photon AP (SSID can be customised)
  • navigate to 192.168.0.1
  • the site should be self explanatory

#5

Ahh okay. Do you have a link by any chance? I looked and couldn’t locate that example in the docs.


#6

https://docs.particle.io/reference/firmware/photon/#complete-example


#7

This link is out of date. Is this document available any more?

I’m having a hard time piecing together how a product is sold to a customer (end user), and the network credentials are entered, the device is claimed, and it’s programmed.

I envision / would implement a web app with database, and use the Particle cloud.


#8

which link is out of date?


#9

Are you looking for the SoftAP HTTP example?
https://docs.particle.io/reference/device-os/firmware/photon/#softap-http-pages


#10

Thank you - that works for now. (It was the “Complete Example” that I was looking for)

-Matt