I am following the tutorials on SDK documentation to create a new object type for communications between my LwM2M server and nrf9160. My object is a byte array, with only one instsance, and is defined as below:
From what I can see in the logs, the object is created and behaves as expected. My object is an opaque byte array which appears to be sent in chunks, via multiple calls to the callback I am registering for it. On the device side, I have no problem in receiving the chunks, concatenating them together, and using the data once last_block is true. However, once the callback function returns after processing the whole data (after the last call with last_block set to true), I see the below error in the output log:
[00:00:39.373,260] <err> net_lwm2m_message_handling: Cannot find block context
I've gone over the source code for LwM2M engine, and the only place I can find for this message is in handle_request() function (line 2051 in SDK v.2.2.0) in lwm2m_message_handling.c source file. Could you please advise what can cause this error to be raised?