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

nanocoap_sock: store message ID in nanocoap_sock_t #19178

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

benpicco
Copy link
Contributor

Contribution description

Create a new message ID for each nanoCoAP socket.
This addresses the concerns raised when I attempted to create a common coap_next_msg_id().

With the requirements brought up in the discussion, such a common function is not possible across GCoAP and nanoCoAP, so at least have such a function for all nanoCoAP users.

Testing procedure

Issues/PRs references

alternative to #18991

@github-actions github-actions bot added Area: CoAP Area: Constrained Application Protocol implementations Area: network Area: Networking Area: sys Area: System labels Jan 20, 2023
@benpicco benpicco added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Jan 20, 2023
@riot-ci
Copy link

riot-ci commented Jan 20, 2023

Murdock results

✔️ PASSED

d041a5f nanocoap_sock: store message ID in nanocoap_sock_t

Success Failures Total Runtime
6782 0 6782 10m:56s

Artifacts

Copy link
Member

@maribu maribu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK. Thx, this is indeed the optimal way both in terms of real life interoperability and in what the standard says is the most correct way :)

@benpicco
Copy link
Contributor Author

bors merge

bors bot added a commit that referenced this pull request Jan 23, 2023
19178: nanocoap_sock: store message ID in nanocoap_sock_t r=benpicco a=benpicco



Co-authored-by: Benjamin Valentin <[email protected]>
@bors

This comment was marked as outdated.

@bors
Copy link
Contributor

bors bot commented Jan 23, 2023

Build succeeded:

@bors bors bot merged commit 7157ff3 into RIOT-OS:master Jan 23, 2023
@benpicco benpicco deleted the nanocoap_sock_next_msg_id branch January 23, 2023 10:43
@MrKevinWeiss MrKevinWeiss added this to the Release 2023.04 milestone Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: CoAP Area: Constrained Application Protocol implementations Area: network Area: Networking Area: sys Area: System CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants