Send file to server over CoAP ?

Hi,

I am currently doing a project where I need to send files (from 50 to 300kB) to a server using nRF9160. I'd like to know which protocol would be more suitable to do this.

I was thinking of CoAP, because I don't need to have a constant connexion like with MQTT. However, I could not find documentation about if it possible, and if so how to do it. Maybe you could help me there ?

Thanks.

Kind regards,

Armand

Parents
  • General, CoAP (RFC 7252) has an extension called "blockwise" (RFC 7959), which sends larger payload in single blocks.

    In your case, if you use it for a PUT or POST, you need to test, if that works "reliable" enough. Mainly because many server-side blockwise implementations are only considered for smaller transfers with a couple of blocks, and not for larger ones, which may come with some breaks and resumptions.

Reply
  • General, CoAP (RFC 7252) has an extension called "blockwise" (RFC 7959), which sends larger payload in single blocks.

    In your case, if you use it for a PUT or POST, you need to test, if that works "reliable" enough. Mainly because many server-side blockwise implementations are only considered for smaller transfers with a couple of blocks, and not for larger ones, which may come with some breaks and resumptions.

Children
Related