zephyr/subsys/net/lib/coap
Robert Lubos cf0b6068d2 net: coap_client: Fix CoAP client thread priority
The default thread priority for the CoAP client thread is set to
NUM_PREEMPT_PRIORITIES which is not a valid thread priority, as the
lowest application thread priority is actually
NUM_PREEMPT_PRIORITIES - 1. Because of this, CoAP client library gave an
assert on boot if assertions were enabled.

Kconfig does not allow for arithmetics when setting integer defaults,
therefore handle this at the preprocessor stage by limiting the actual
priority assigned to the CoAP client thread to a valid range.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-04-04 18:17:30 +02:00
..
CMakeLists.txt
coap_client.c net: coap_client: Fix CoAP client thread priority 2025-04-04 18:17:30 +02:00
coap_link_format.c net: lib: coap: Remove unused function 2025-02-12 02:25:53 +01:00
coap_server_shell.c
coap_server.c net: lib: coap: coap_server: Use eventfd instead of socket pair 2025-03-26 08:55:45 +01:00
coap.c net: coap: fix uninitialized usage of option struct 2025-02-11 11:45:05 +00:00
Kconfig net: lib: coap: coap_server: Use eventfd instead of socket pair 2025-03-26 08:55:45 +01:00