I’m trying to set the claim code for a photon, and getting an error. The claim code was generated using a token generated with a customer-scope, for a particular product.
Normally you use the Photon/P1 Device Setup library instead, but if you want to do it manually I think you’re missing some steps. Also, the parameter to the /set must be in JSON format instead of form-urlencoded.
Awesome, thank you for the link! I wasn’t aware of this treasure trove of documentation. Setting the claim code with the body in JSON instead of form-urlencoded now succeeds, (returning 0), but it’s not actually associated with my user. I didn’t know the expiration for claim codes, so I generated a fresh one, and set that, and it still does not show up in the console.
I wasn’t sure if the order of configuring the access point and setting the claim code mattered, so I erased the wifi networks, set the claim code and configured ap, with the same result. Should I do the factory reset described here? https://github.com/rickkas7/photonreset