This library is a transport agnostic implementation of the Constraint Application Protocol (CoAP - RFC 7252) for .Net Standard.
Since CoAP is designed for unreliable transport layers. (6LoWPAN, UDP, etc...) it made sense to not worry about the transport implementaions and allow the applicatrion to provide their own.
If you're after a UDP transport example, see CoAPNet.Udp
All relevant changes are logged in Changelog.md
-
Full support for RFC 7959 - Block-Wise Transfers in the Constrained Application Protocol (CoAP)
-
Support for Sending and Receiving Confirmable (CON) and Non-Confirmable (NON) messagees.
- Retransmit confirmable messages, throwing an exception on failure
- Rejects malform messages with appropiate error code.
- Ignores repeated messages within a set
TimeSpan
-
Support for Sending and receiving multicast messages.
-
CoapServer
- Simple server for binding to local transports and processing requestsCoapHandler
- Template request handler to be used by CoapServerCoapResourceHandler
- Example handler that specificaly servesCoapResource
s
- Create unit tests to cover as much of RFC7252 as possible.
- Create more examples
- Support DTLS over UDP
- Resolve host names using mDNS or DNS
- Await message response for non-confirmable (NON) messages
- Support for RFC 7641 - Observing Resources in the Constrained Application Protocol (CoAP)
- Support for RFC 7390 - Group Communication for the Constrained Application Protocol (CoAP)
Starts a CoAP server listening on all network interfaces and listens for multicast requests.
Sends a GET /hello
request to localhost and prints the response resource.
Note: Run SimpleServer and then run SimpleClient to see both in action
Will send a multicast GET /.well-known/core
request every minute and prints responses received.