zephyr/subsys/net/lib/coap
Sibert Declercq 808f79d863 net: coap: CoAP observe age now correctly wraps around
Fixes two bugs:
* When a notify is executed before any observers are added, the age is
incremented from 0 to 1. When an observer is registered, the age is not 0
as expected, causing the age to be 1 instead of the expected 2
* The check if a message is newer than the last received one is described
in RFC7641, section 3.4. Simply incrementing age will not comply to what
the RFC describes once the value wraps around. This is now fixed

Signed-off-by: Sibert Declercq <sibert.declercq@basalte.be>
2024-03-05 14:34:42 +01:00
..
CMakeLists.txt net: lib: coap: Add CoAP server shell 2023-11-09 11:21:42 +01:00
coap_client.c net: lib: coap: Change coap_pending_init() 2023-12-15 11:41:27 +00:00
coap_link_format.c net: lib: coap: Add resources length based variants 2023-11-09 11:21:42 +01:00
coap_server_shell.c net: lib: coap: Add CoAP server shell 2023-11-09 11:21:42 +01:00
coap_server.c net: lib: coap: Add error check when waking server thread 2024-02-19 19:07:03 +01:00
coap.c net: coap: CoAP observe age now correctly wraps around 2024-03-05 14:34:42 +01:00
Kconfig net: lib: coap: Use coap_transmission_parameters in coap_server 2023-12-18 09:28:25 +01:00