zephyr/subsys/net/lib/lwm2m
Michael Scott 75016c7b97 net: lwm2m: fix resource not found error code in format writers
We are returning EINVAL from content format write ops when an object
field definition is not found (an optional field which is not
implemented).  Instead, return ENOENT which lets the LwM2M engine
know to send ZOAP_RESPONSE_CODE_NOT_FOUND to the LwM2M server at the
end of handle_request().

NOTE: This behavior is not correct when we call the writer right after
a CREATE operation where the data is assigned to resources for the
first time.  This case will be handled in a follow-up patch once we're
able to distinguish between a WRITE and a CREATE in the write op
handler.

Signed-off-by: Michael Scott <michael.scott@linaro.org>
2017-08-21 08:38:17 -04:00
..
ipso_light_control.c net: lwm2m: add IPSO light control object 2017-08-18 10:53:25 +03:00
ipso_temp_sensor.c net: lwm2m: add IPSO support w/ temperature sensor object 2017-08-09 10:55:53 +03:00
Kconfig doc: fix misspellings and missing EOF newlines 2017-08-16 17:38:41 -05:00
Kconfig.ipso net: lwm2m: add IPSO light control object 2017-08-18 10:53:25 +03:00
lwm2m_engine.c net: struct sockaddr should have field "sa_family" 2017-08-18 16:34:51 -04:00
lwm2m_engine.h net: lwm2m: fix registration content format and use plain/text 2017-08-13 20:52:56 +03:00
lwm2m_obj_device.c net: lwm2m: initial library support for LWM2M 2017-08-09 10:55:53 +03:00
lwm2m_obj_firmware.c net: lwm2m: initial library support for LWM2M 2017-08-09 10:55:53 +03:00
lwm2m_obj_firmware_pull.c net: struct sockaddr should have field "sa_family" 2017-08-18 16:34:51 -04:00
lwm2m_obj_security.c net: lwm2m: initial library support for LWM2M 2017-08-09 10:55:53 +03:00
lwm2m_obj_server.c net: lwm2m: initial library support for LWM2M 2017-08-09 10:55:53 +03:00
lwm2m_object.h net: lwm2m: add SPX Apache-2.0 license tag w/ Linaro copyright 2017-08-09 10:55:53 +03:00
lwm2m_rd_client.c net: struct sockaddr should have field "sa_family" 2017-08-18 16:34:51 -04:00
lwm2m_rd_client.h net: lwm2m: add SPX Apache-2.0 license tag w/ Linaro copyright 2017-08-09 10:55:53 +03:00
lwm2m_rw_json.c net: lwm2m: fix resource not found error code in format writers 2017-08-21 08:38:17 -04:00
lwm2m_rw_json.h net: lwm2m: add SPX Apache-2.0 license tag w/ Linaro copyright 2017-08-09 10:55:53 +03:00
lwm2m_rw_oma_tlv.c net: lwm2m: fix resource not found error code in format writers 2017-08-21 08:38:17 -04:00
lwm2m_rw_oma_tlv.h net: lwm2m: add SPX Apache-2.0 license tag w/ Linaro copyright 2017-08-09 10:55:53 +03:00
lwm2m_rw_plain_text.c net: lwm2m: fix resource not found error code in format writers 2017-08-21 08:38:17 -04:00
lwm2m_rw_plain_text.h net: lwm2m: add SPX Apache-2.0 license tag w/ Linaro copyright 2017-08-09 10:55:53 +03:00
Makefile net: lwm2m: add IPSO light control object 2017-08-18 10:53:25 +03:00