zephyr/subsys/net/lib
Robert Chou 228bf05af6 net: lwm2m: update internal API select_writer() and select_reader()
As per review of PR #5893, this is a follow up patch to update
select_writer() API to match the behavior of select_reader() API.

Quote from OMA-TS-LightweightM2M-V1_0_1-20170704-A. 8.2.5
"An Object Instance or Resource is Read by sending a CoAP GET to the
 corresponding path. The response includes the value in the
 corresponding Plain Text, Opaque, TLV or JSON format according to
 the specified Content-Format (see section 6.4).The request MAY
 specify an Accept option containing the preferred Content-Format
 to receive. When the specified Content-Format is not supported by
 the LwM2M Client, the request MUST be rejected."

Therefore, we do not attempt to assign a content-format when the
requested one is not supported. Instead, we return an error code.

0 is returned when reader or writer has been successfully selected by
select_reader() or select_writer()

Signed-off-by: Robert Chou <robert.ch.chou@acer.com>
2018-02-07 22:12:48 -05:00
..
app net: if: Handle new address type of NET_ADDR_OVERRIDABLE 2018-01-23 09:25:51 +02:00
coap crypto: config: config-coap: add CONFIG for setting max content length 2017-12-15 17:52:13 -05:00
dns net: dns: Allow to initialize DNS servers from struct sockaddr[] 2018-01-18 17:30:40 +02:00
http net: http: Fix http_prepare_and_send 2018-02-02 16:50:07 +02:00
lwm2m net: lwm2m: update internal API select_writer() and select_reader() 2018-02-07 22:12:48 -05:00
mqtt kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
openthread subsys: net: lib: Add OpenThread platform 2018-01-29 22:42:03 -05:00
sntp kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
sockets kconfig: fix help syntax and add spaces 2017-12-13 17:43:28 -06:00
CMakeLists.txt subsys: net: lib: Add OpenThread platform 2018-01-29 22:42:03 -05:00
Kconfig net: remove zoap library 2018-01-02 09:41:24 -05:00