Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Claiming / provisioning a devices without an deviceID #296

Open
ojna opened this issue Jun 7, 2020 · 5 comments
Open

Claiming / provisioning a devices without an deviceID #296

ojna opened this issue Jun 7, 2020 · 5 comments

Comments

@ojna
Copy link

ojna commented Jun 7, 2020

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:

{ "ok": true, "device_id": "new-device-id" }

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.

@jlkalberer
Copy link

jlkalberer commented Jun 7, 2020

Please send a pull request.

@ojna
Copy link
Author

ojna commented Jun 8, 2020

I will, but are there any information on my question?

Are there any roadmap to adressing this, or is anyone working on it?

@jlkalberer
Copy link

No, I don't have plans on fixing this as it isn't a critical bug

@jlkalberer
Copy link

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.

@ojna
Copy link
Author

ojna commented Jul 20, 2020

Hi,

I've done some work on this and will continue this week. Will post a pull request when its ready for some feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants