zephyr/subsys
Robert Lubos 12e1fd653d net: lwm2m: Fix FOTA block transfer with opaque content-format
This commit fixes PUSH FOTA when opaque content-format is used.

This consists of the following fixes:
 * Moved `struct block_context` to a private header, so that it can be a
   part of `struct lwm2m_input_context`. This allows content decoders to
   make use of the block context data.
 * Removed faulty `get_length_left` function from the plain text
   decoder, and replace it with coap_packet_get_payload() to obtain the
   actual payload size.
 * Introduce `struct lwm2m_opaque_context` as a part of block context,
   which allows to keep track of opaque data download progress.
 * Simplify `lwm2m_write_handler_opaque()` function. It will now only
   make calls to `engine_get_opaque` - it's the decoder responsibility
   to update the opaque context according to it's content format (for
   instance TLV decoder should only update it with the actual opaque
   data size, not the whole TLV).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2020-10-05 12:16:57 +02:00
..
bluetooth Bluetooth: controller: Fix Null deref during adv data update 2020-10-05 11:47:30 +02:00
canbus
console
cpp
debug
dfu misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
disk misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
emul
fb
fs drivers: flash: Pass bool to flash_write_protection_set() 2020-10-02 12:06:28 -04:00
jwt
logging misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
mgmt misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
net net: lwm2m: Fix FOTA block transfer with opaque content-format 2020-10-05 12:16:57 +02:00
power
random random: Warning when using test config 2020-10-02 11:30:03 +02:00
settings settings_fcb: initialize rc variable 2020-10-02 12:07:06 -04:00
shell shell: enhance help command 2020-10-02 12:05:49 -04:00
stats misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
storage
testsuite
timing
tracing
usb
CMakeLists.txt
Kconfig