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

Getting started example for device provisioning does not work #117

Closed
dcalvoalonso opened this issue Mar 15, 2018 · 1 comment · Fixed by #118
Closed

Getting started example for device provisioning does not work #117

dcalvoalonso opened this issue Mar 15, 2018 · 1 comment · Fixed by #118

Comments

@dcalvoalonso
Copy link
Contributor

Getting started proposes the use of a service called Factory. Nevertheless, the fact of using services names with uppercase is not a good practice (telefonicaid/iotagent-node-lib#336 (comment)) and causes the following problem:

  • When a queryContext request is sent to the CB to read the lazy attributes, it is forwarded to the IOTA, which is not able to find the device since the service is stored internally as Factory but received as part of the request as factory.

In addition, the example does not propose any specific configuration and therefore config.js is used be by default. This causes several problems which imply that the example does not work:

dcalvoalonso added a commit to dcalvoalonso/lightweightm2m-iotagent that referenced this issue Mar 15, 2018
- Correct example for device provisioning
- Configuration example for device provisioning
@fgalan
Copy link
Member

fgalan commented Mar 15, 2018

Fixed by PR #118

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

Successfully merging a pull request may close this issue.

2 participants