I’m currently trying to remove the particle login in your android example, is it strictly needed to start a fully functional device setup (not particle sdk/cloud functions) using your sdk? I mean i only need the device setup procedure (softAP->home network client)
If you’re trying to claim the device (as your post states), you’ll need some kind of cloud interaction.
If it’s for wifi only, then you won’t. Then you’ll have to program it accordingly, or it might not connect properly.
Is there a reason you don’t want to use the Device Setup API in step 4? It’s possible but it’s a huge pain to set the Wi-Fi credentials by hand. You can use the Device Setup API to set the Wi-Fi credentials only and not mess with the claiming.
If you do want to do it completely by yourself, see the section “Set up Wi-Fi” in this document. It describes how to manually set the Wi-Fi credentials over SoftAP:
I don’t think it’s documented anywhere. I figured it out by reading the source to the SoftAP Setup Javascript API.
The SoftAP endpoints are what the phone apps use to initially configure a Photon. You can use it to configure Wi-Fi with no internet or cloud access at all if you skip the claim code stuff.
There are only a few endpoints and the ones you need are in the link I previously posted.
What i meant was a simple way to set up photon connection to the wireless with a smartphone without the hassle of the login/claim and cloud stuff (it is meant for a person that doesn’t care of the cloud).
Soft-AP is already there and using the example in the reference it allows to do it from a browser (from a phone eventually but it is not so clean).
No particle login and no particle sdk init , that’s what i mean.
Basically it means to start directly from DiscoverDeviceActivity rather than passing through LoginActivity
You just copy the whole code in a new project and build/flash it.
Once you got that running, you can extend that project to whatever you want - once you’ve done that, you’ll know how to incorporate that part into existing projects