Skip to content

CoAP: Fix empty ack#861

Merged
LukasWoodtli merged 3 commits intoeclipse-wakaama:mainfrom
husqvarnagroup:gardena/ss/fix-empty-ack
Apr 3, 2025
Merged

CoAP: Fix empty ack#861
LukasWoodtli merged 3 commits intoeclipse-wakaama:mainfrom
husqvarnagroup:gardena/ss/fix-empty-ack

Conversation

@sarchey
Copy link
Copy Markdown
Contributor

@sarchey sarchey commented Apr 3, 2025

CoAP: Fix the implementation of the empty ACK and separate response mechanism

  • Fix received message not correct processed
  • Fix timeout for separate response

@sarchey sarchey changed the title Gardena/ss/fix empty ack CoAP: Fix empty ack Apr 3, 2025
A received message was not processed if the mid does not
match a pending operation.
Now check token instead of only mid.

Signed-off-by: Sebastian Schoch <sebastian.schoch@husqvarnagroup.com>
@sarchey sarchey force-pushed the gardena/ss/fix-empty-ack branch 2 times, most recently from 3d104cb to 3051569 Compare April 3, 2025 08:55
When an empty ACK is received set the timeout for the separate response
to COAP_SEPARATE_TIMEOUT.

Signed-off-by: Sebastian Schoch <sebastian.schoch@husqvarnagroup.com>
@sarchey sarchey force-pushed the gardena/ss/fix-empty-ack branch from 3051569 to ea90c22 Compare April 3, 2025 08:57
Comment thread coap/er-coap-13/er-coap-13.h Outdated

#define COAP_DEFAULT_MAX_AGE 60
#define COAP_RESPONSE_TIMEOUT 2
#define COAP_SEPARATE_TIMEOUT 15
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It would be great to make this configurable from cmake.

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.

done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, thanks!

@sarchey sarchey force-pushed the gardena/ss/fix-empty-ack branch from aa9e7af to ec90989 Compare April 3, 2025 11:36
@LukasWoodtli LukasWoodtli force-pushed the gardena/ss/fix-empty-ack branch from ec90989 to 5c0ea25 Compare April 3, 2025 12:57
The timeout for separate ack can be configured with CMake variable.

Signed-off-by: Sebastian Schoch <sebastian.schoch@husqvarnagroup.com>
@LukasWoodtli LukasWoodtli force-pushed the gardena/ss/fix-empty-ack branch from 5c0ea25 to 2460757 Compare April 3, 2025 13:01
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 3, 2025

@LukasWoodtli LukasWoodtli merged commit a30c1e6 into eclipse-wakaama:main Apr 3, 2025
78 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants