Skip to content

unicoap: basic CoAP group communication support#22484

Draft
elenaf9 wants to merge 3 commits into
RIOT-OS:unicoap-p3from
elenaf9:unicoap-03-client-group-communication
Draft

unicoap: basic CoAP group communication support#22484
elenaf9 wants to merge 3 commits into
RIOT-OS:unicoap-p3from
elenaf9:unicoap-03-client-group-communication

Conversation

@elenaf9

@elenaf9 elenaf9 commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Contribution description

WIP group communication support for unicoap.
Group communication is based on IP multicast, with non-confirmable messages. Most of it works already out-of-the-box using the gnrc IP multicast support. Two main changes required:

  • If a request was multicast, we can expect multiple replies. So only clear the memo after a timeout or if the user manually aborted the request.
  • Add the timeout for multicast requests, until which replies are acceptable.

Testing procedure

Not tested yet because there seems to be a bug in the client implementation.

Issues/PRs references

Small addition to #22266.

Tracking issue: #21389

Declaration of AI-Tools / LLMs usage:

AI-Tools / LLMs that were used are:

  • none

@github-actions github-actions Bot added Area: network Area: Networking Area: CoAP Area: Constrained Application Protocol implementations Area: sys Area: System labels Jul 19, 2026
Comment on lines +123 to +124
unicoap_event_cancel(&memo->super.exchange.timeout);
unicoap_event_cancel(&memo->super.multicast.timeout);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I guess we should clear the timeout if the memo is released?

Comment thread sys/include/net/unicoap/client.h Outdated
@elenaf9 elenaf9 changed the title unicoap: basic group communication support unicoap: basic CoAP group communication support Jul 19, 2026
@AnnsAnns AnnsAnns added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR AI: None Stated AI was not (stated to be) used in this PR/Issue labels Jul 19, 2026
@riot-ci

riot-ci commented Jul 19, 2026

Copy link
Copy Markdown

Murdock results

FAILED

3b476ac fixup! unicoap: basic group communication support

Artifacts

@crasbe crasbe added Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation State: needs rebase State: The codebase was changed since the creation of the PR, making a rebase necessary labels Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI: None Stated AI was not (stated to be) used in this PR/Issue 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 State: needs rebase State: The codebase was changed since the creation of the PR, making a rebase necessary Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants