-
Notifications
You must be signed in to change notification settings - Fork 30
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
Problem with configuration group for devices #113
Comments
Did |
I'm using the doc: I start the IoT Agent (node bin/lwm2mAgent.js) with my configuration and I run my JS Client to create/update object and connect to the server ... the same steps that the doc provides (LWM2M-Client> ...) |
Maybe I'm not making my point clearly... :) Apart from the test you describe, note this repository includes a set of unit tests that act as regression for any new change. The command (Note however this is a necessary but not sufficient condition. Unit tests are not perfect and doesn't cover all the possible cases so If the Thanks! |
Dear @pasquy73, I think that the problem is that https://github.com/Fiware/iot.IoTagent-LWM2M/blob/1cdf6abc96654aca2f912cad01d5fdfcd21d7ec8/docs/configurationProvisioning.md is not updated. As you can see in the reference documentation for the IoT Agents https://github.com/telefonicaid/iotagent-node-lib#configurationapi, the payload field to define active attributes is now active. Could you please check if the example works using active instead of attributes? If it does, I will submit a PR to upload the example. Thanks in advance and BR. Daniel |
Here the installation and execution steps of my test on my Win7 with active attribute in the payload for "Power Control" in configuration provisioning and no change in the commonLwm2m.js (only registeredDevice.active):
start the server
start the client run the test
connection test in orion response (Power Control empty - I expected "On" value)
connection update battery attribute:
response (OK) Please note that both the tests I've this error: |
Anyway, if I use the LWM2M 0.3.0, then my test works both device and service provisioning:
|
- Trying to fix bug
- Fixing bug
Fixed by PR #119 |
Hi all, |
@pasquy73 thanks for the report. I'm reopening the issue. @dcalvoalonso , as author of the PR that addressed this issue (PR #119), what do you think on this? |
Hi @pasquy73 , could you please confirm that you are using FIWARE service and subservice with lowercases in all the requests? |
Hi Alonso, My provisioning is a POST to /iot/services (you can try my example above using the config-blank):
|
@pasquy73 for reference... which exact version of IOTA are you usring? I mean, the githash corresponding to the version you are using for testing. |
I'm not sure to understand your request; I used git clone https://github.com/Fiware/iot.IoTagent-LWM2M.git and it's master. I also saw that https://github.com/telefonicaid/lightweightm2m-iotagent.git is a mirror of https://github.com/Fiware/iot.IoTagent-LWM2M.git. |
@pasquy73 , in order to send the query to the CB are you using the following request?
|
That's the githash I were referring. Thanks! (Another way of getting it is running |
Any update on this issue? I tried with the latest docker image on fiware/lightweightm2m-iotagent |
@letavia is your last comment in this issue related with what you mentions here: #112 (comment) ? |
Yes, and I will continue in issue #112. |
Hi all,
I'm testing the configuration provisioning at this link https://github.com/Fiware/iot.IoTagent-LWM2M/blob/1cdf6abc96654aca2f912cad01d5fdfcd21d7ec8/docs/configurationProvisioning.md and I'm using the configuration group for devices with type WeatherBaloon.
I noticed that there was a change from 'attributes' to 'active' in the payload of REST call (curl localhost:4041/iot/services ...) and my old test doesn't work.
I'm not sure if this is the right solution, but I've added back 'registeredDevice.attributes' in the commonLwm2m.js file as follow:
So with these changes, my tests work for both service and device (https://github.com/Fiware/iot.IoTagent-LWM2M/blob/1cdf6abc96654aca2f912cad01d5fdfcd21d7ec8/docs/deviceProvisioning.md) configuration.
Please let me know if I'm right or not.
The text was updated successfully, but these errors were encountered: