OK, so I used the following to set the WIFI credentials and it’s breathing Cyan.
particle serial wifi --file wifi.json
How do I now claim the device. I see there is a claim option for particle serial but it required a claim code. Presumably this has to be generated somehow.
Usage: particle serial claim [options] <claimCode>
@scruffr do you know if using a binary on an unclaimed Photon is stable?
Presumably using the following will ensure that the system thread will never attempt connection to the Particle Cloud (which we’re not using in this instance) unless we do something like Particle.connect()
# Claim an online device
curl -d access_token=<access token> -d id=<device id> https://api.particle.io/v1/devices/
# Unclaim a device
curl -d access_token=<access_token> -X DELETE https://api.particle.io/v1/devices/<device id>
# With access token taken from settings tab in https://build.particle.io
# and device ID from particle serial identify
It is just as stable as on a claimed device. When it comes to running the firmware the device itself is ignorant of its claiming status.
You can connect unclaimed device to the cloud too. That would only make it susceptible to being claimed by someone else and Particle.function(), Particle.variable(), Particle.publish(..., PRIVATE) and Particle.subscribe(..., MY_DEVICES) would be of no use since these are features that require an account to communicate with.