Hello,
I am currently developing a CoAP client on the Thingy:53. For one task, the client has to send a request to a server on a Raspberry Pi which is based on the LibCoAP library and then gets a response with a payload. This works fine as long as the reply does not exceed the maximum CoAP message size of 1024 bytes. Therefore I wanted to send the reply with CoAP block transfer. LibCoAP provides a corresponding functionality. On the Thingy:53, I work with the OpenThread CoAP API. I am able to receive the first 1024 bytes of the message. The API provides this function: "otCoapSendRequestBlockWise", which takes a "otCoapBlockwiseReceiveHook" function pointer as one of the arguments. However, I was not able to handle the incoming block traffic properly and the Thingy reboots when the message arrives. It would be great if someone has some experience with using the OpenThread API on a nrf device to handle CoAP block transfer and may provide an example of how to use the receive hook.
Thanks in advance and kind regards,
Simon