commit | dfd897096d6849b97d03b06702f8f7c55e483417 | [log] [tgz] |
---|---|---|
author | Sagar Shah <sagar.shah@legrand.us> | Thu Sep 08 09:45:30 2022 -0700 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Mon Sep 12 10:53:34 2022 +0000 |
tree | 96ffebdb6b930a3351a45e69b5d15d586e195979 | |
parent | 1357be36b008a44fd560e95156dc556a6799481c [diff] |
net: lib: coap: method_from_code() API change to return errors. method_from_code() signature has changed to return error and the method. In case of an invalid code it returns -EINVAL and causes coap_handle_request() to return -ENOTSUP. Fixes: #49498 Signed-off-by: Sagar Shah <sagar.shah@legrand.us>