I am sending a response from CoAP server to CoAP client which is more than 1024 size. But, I am not able to receive the complete data in CoAP client. I could receive only 1024 size of data.
API used to send larger data in Server:
coap_add_data_large_response()
API used to receive larger data in Client:
coap_get_data_large()
But, in wireshark, complete data is sent as 2 blocks or pdu’s. For example, if the data size is 1224. First set data sent is 1024 size and second set of data sent is 200 size. But I could not receive the complete data.
Could you please guide us, how to receive complete data(more than 1024) in CoAP client.
How to use this API coap_block_build_body() to collect multiple blocks or pdu’s of data into a single large data(more than 1024).
Gokul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.