Com-AugustCellars / CoAP-CSharp

CoAP Implementation in C#
Other
41 stars 19 forks source link

Add ability remove Options in CoapClient #79

Closed trampster closed 4 years ago

trampster commented 4 years ago

Adds the ability to remove Options in CoapClient, similar to how you can for a Request.

This was required in my case to remove UriPort which was not supported by a CoAP server I am connecting to.

See #78

jimsch commented 4 years ago

Do you have other cases for the need to remove default options that are put into the message or is this really limited to just the port number?

trampster commented 4 years ago

I only need the UriPort removed.

However I felt that making it generic could be useful for others, and is consistent with the API on Request.

trampster commented 4 years ago

The CI failures appear to be unrelated to my change.

jimsch commented 4 years ago

Insert a line in coap.net/coap.std10.csproj and I will merge

trampster commented 4 years ago

Done