Claim a photon : device-id response meaning for field "c":"1"


I was dreaming or read somewhere that the c field in the response of a GET device-id while setting up a photon means that the device is claimed already (if equal to 1)?


$ curl

Or maybe it does not have that meaning, may any of you know?
Pinging @rickkas7 in case you know this bit…

Manual photon claiming

It is true. Sort of.

The “c” parameter indicates whether the device claimed flag in the DCT (configuration flash) is set. This flag is cleared on a factory new device and set when you first claim a device.

The caveat is that when you unclaim a device using the CLI (or Cloud API), the device is unclaimed from the cloud device database, however the device is not notified and the DCT flag will still be set.

1 Like