zephyriot / zephyr-issues

0 stars 0 forks source link

Zoap message to use more than one fragment #2046

Open nashif opened 7 years ago

nashif commented 7 years ago

Reported by Patrik Flykt:

Zoap API function calls only use the first fragement of a net_pkt. If the network buffer contains data in subsequent fragments, these are not accessed either on read nor write.

One possible solution is to create a function such as zoap_packet_append() that takes as argument an input buffer, and, as its name implies, appends the data into one or more net_buf fragments invisible to the user. On read, a function should be created that takes an net_pkt as input and reads the requested amount of data even if the data is split over multiple net_pkt fragments.

(Imported from Jira ZEP-2210)

nashif commented 7 years ago

by Jukka Rissanen:

This is for v1.9

nashif commented 7 years ago

by Mark Linkmeyer:

Jukka Rissanen , by when do you expect to have this story implemented and in code review?

nashif commented 7 years ago

by Andrei Laperie:

Pushing to 1.10 -- we won't have time to optimize Zoap before that release.

nashif commented 7 years ago

by Ravi kumar Veeramally:

I am working on this, so there is a possibility of api changes and also few api's will be deprecated. I will come up with some initial changes.