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

Possible to register a new device? #1

Closed
jonathanface opened this issue Jul 25, 2018 · 1 comment
Closed

Possible to register a new device? #1

jonathanface opened this issue Jul 25, 2018 · 1 comment

Comments

@jonathanface
Copy link

Is this possible to do in code, and if so are there plans to add this feature?

I am trying to avoid having to manually register every IOT device with azure.

@amenzhinsky
Copy link
Owner

Hi @jonathanface , sorry for the late response.

Sure https://godoc.org/github.com/goautomotive/iothub/iotservice#Client.CreateDevice, unortunately the lib is not well documented because it's relatively new.

Have a look how iothub-service uses it: https://github.com/goautomotive/iothub/blob/8d09ac322ab93e37ed7f9b92baf62ac3e1335e3a/cmd/iothub-service/main.go#L268

Closing this for now, if you're having any problems feel free to create a new issue.

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