Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCoAP blockwise transfer
https://www.eclipse.org/forums/index.php/mv/msg/1086499/1764508/#msg_1764508
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:
org.eclipse.om2m.binding.coap/META-INF/MANIFEST.MF
org.eclipse.om2m.binding.coap/.classpath
org.eclipse.om2m.binding.coap/build.properties
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...]]>Regis DARGENT2017-05-30T15:55:26-00:00Re: CoAP blockwise transfer
https://www.eclipse.org/forums/index.php/mv/msg/1086499/1764512/#msg_1764512
Thank you for your valuable feedback.
I will include your patch in our next release ;)
Best regards,
Mahdi]]>Mahdi Ben Alaya2017-05-30T16:40:45-00:00Re: CoAP blockwise transfer
https://www.eclipse.org/forums/index.php/mv/msg/1086499/1764518/#msg_1764518
It is a nice contribution, i suggest you to submit this modification on gerrit to be include in the eclipse OM2M distribution.