PelionIoT / mbed-coap

CoAP C library - Builder and Parser for CoAP messages
Apache License 2.0
29 stars 16 forks source link

There is a need to handle options which are not pre-programmed #63

Open jimsch opened 6 years ago

jimsch commented 6 years ago

There needs to be an option to add options which are not pre-programmed in to the library. I am currently working on some code which needs an option that is not there and thus need to change the library to handle that specific option. There needs to be a way for an application to add an option to a message which is not hard coded in and to receive options which are not hard coded.

ciarmcom commented 6 years ago

ARM Internal Ref: IOTCLT-2884

yogpan01 commented 6 years ago

Hi, Can you please provide code place where you need to this functionality?

jimsch commented 6 years ago

I am doing an implementation of https://datatracker.ietf.org/doc/draft-ietf-core-object-security/ which uses an option currently 9. This option has not yet been finalized so I would not necessarily expect that it would be recognized by your code at this time. It would still be nice to be able to create and share the code for this with others. At this time it would require sharing a hacked version of the mbed-os code. I don't know of any of the OCF people would want to use your library or not, I assume that they are probably using a different one.

jimsch commented 6 years ago

This specification https://datatracker.ietf.org/doc/draft-ietf-core-echo-request-tag/ has two more options that I would not expect to see immediate implementation of but which I may want to put into my project as some time.