net: lwm2m: Add offset to post-write callback

When Block-Wise transfer restarts, the post-write callback should
receive some indication that the block is actually a beginning of new,
instead of part of previous transfer.

Fixes #71351

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
Seppo Takalo 2024-05-10 13:35:11 +03:00 committed by Alberto Escolar
commit 01b57b4999
28 changed files with 122 additions and 87 deletions

View file

@ -378,6 +378,13 @@ Networking
``CONFIG_NET_TCP_RETRY_COUNT`` instead to control the total timeout at the
TCP level. (:github:`70731`)
* In LwM2M API, the callback type :c:type:`lwm2m_engine_set_data_cb_t` has now an additional
parameter ``offset``. This parameter is used to indicate the offset of the data
during a Coap Block-wise transfer. Any post write, validate or some firmware callbacks
should be updated to include this parameter. (:github:`72590`)
Other Subsystems
****************

View file

@ -287,6 +287,9 @@ Networking
* :c:func:`lwm2m_set_bulk`
* Added new ``offset`` parameter to :c:type:`lwm2m_engine_set_data_cb_t` callback type.
This affects post write and validate callbacks as well as some firmware callbacks.
* IPSP:
* Removed IPSP support. ``CONFIG_NET_L2_BT`` does not exist anymore.