Open ojna opened 4 years ago
Please send a pull request.
I will, but are there any information on my question?
Are there any roadmap to adressing this, or is anyone working on it?
No, I don't have plans on fixing this as it isn't a critical bug
Hey @ojna
I started looking into implementing this but the API is behind the enterprise plan (as far as I can tell). I don't want to pay for it or start a trial.
Hi,
I've done some work on this and will continue this week. Will post a pull request when its ready for some feedback.
Looking at the official particle api docs you can see that the endpoint POST /v1/devices should be able to both claim a device with id or provision a new device if it's left out and supplied with a product id.
This applies to eg Raspberry Pi. I've been messing around with the code in the dev branch and everything works fine with the Particle Agent for RPI if the endpoints creates an ID and then responds with:
Once its stored in the database if works fine with the rest of the cli and so on. But i guess we need to make sure the generated id don't collide with other ids later on.
Are there any roadmap to adressing this, or is anyone working on it? Either case i will fix this and with some coordination with this project i can send a pull request with it later on.