Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correctly process DESCRIBE request. Additional logging
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c54ecc3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@avtolstoy - I had issues with this when trying to get functions/variables because of instead of 1 coap message == 1 response, I had to listen for two responses.
This looks like it should fix things but can I expect that the entire description (system + functions + variables) will fit in the COAP message or should I start passing flags to get both?
c54ecc3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we talking UDP or TCP here? Electron receives and processes separate SYSTEM/APPLICATION DESCRIBE requests; I would assume exactly to fit the CoAP message into MTU. With TCP that shouldn't be a problem at all, since TCP is stream based. Photon doesn't receive any flags and defaults to DESCRIBE_ALL. Previously it was responding with two separate messages as described in #1181. There is still a piece of code missing that strips the AES padding, but no-flags + padding should still be correctly handled now.
c54ecc3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my case, I am sending a message over COAP with the local cloud with P1/Photon.
I think my code should handle your changes but the prior behavior was very confusing.