|CoAP blockwise transfer [message #1764508]
||Tue, 30 May 2017 15:55
| Regis DARGENT
Registered: November 2016
I recently fell on a problem using OneM2M server and CoAP protocol :
When the payload is too high, we have to split the frame into several blocks (CoAP blockwise transfer) ;
The Californium CoAP stack of OneM2M server should then re-assemble the different blocks, but I can see in the logs that it is not done correctly : the headers are lost in the process, so the data is dropped.
I successfully ported the last stable version of californium (1.0.5) to OneM2M :
I changed "californium-0.18.6-final.jar" to "californium-core-1.0.5.jar"
and "element-connector-0.2-final.jar" to "element-connector-1.0.5.jar"
in the 3 files:
I then modified the attached .java files (I mainly changed the 'import' lines, and changed the name of the CoapServer class to Om2mCoapServerClass, as the previous name is now used in Californium).
I it may be usefull to someone...
Powered by FUDForum
. Page generated in 0.02017 seconds