-
Notifications
You must be signed in to change notification settings - Fork 44
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
Observations are not using coap proxy #110
Comments
Internal Server Error (request is not defined) problem is solved by upgrading coap library to 0.17.0. Currently is declared as 0.17.0 in package.json but npm-shrinkwrap.json forces to use 0.13.1. This problem was detected in #93
Note: Tests carried out by grunt command raises aleatory errors after upgrade coap library to 0.17.0. However, tests are correctly passed when they are runned individually with mocha command. |
PR for this issue #111 |
Sorry @fgalan, I did the PR referencing this issue to link the issue-PR but maybe was not totally clear. My mistake. |
Don't worry, it's ok :) Now that PR #111 has been merged, should this issue be closed? |
Since the issue was solved and merged I will close this issue. Thanks you fgalan! |
Hello,
We have detected that the observation requests are sent from a ports which differs from the server port. This happens due to the use of libcoap as proxy. Read, Write and Execute requests are sent correclty using the coap proxy, but not the observers requests.
Next image illustrate the problem, where the observation requests are being sent from a different port to the LwM2M Server (5684).
Next image illustrate the problem already solved, where the requests pass through the coap proxy (server-to-device communications in red color), so observation requests now proceed from the LwM2M Server.
This represents a problem for some LwM2M Clients, since they are not capable to recognize this packet as a petition from the server. Not manage this can be seen as a security problem where maybe a third party can extract information the devices (in case of non secure communications of course).
Tests are passed correctly in both lwm2m-node-lib and lightweight-iot agent.
Note: After this correction all observations are correctly managed by Lightweight IOTAgent and pushed to Orion Context Broker
LwM2M IOTAgent:
Orion:
But we note an extrange message appear "Internal Server Error (request is not defined)" after receive an observation. This message do not represent a problem for the LwM2M Clients but can someone clarify the procedence of this message and a way to solve it? Next image illustrates this behaviour.
BR,
David
The text was updated successfully, but these errors were encountered: