Added site support for CoAP client including example #132
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've added support to supply a coap site to a coap client. I needed this because I want to communicate with CoAP nodes in a private network (NAT).
Also added a small tcp example to use this feature. I'm aware of the fact that quality of this test is not that high. I guess this library misses the support as server to handle access the incoming connections. Something I've realised by hacking the
TcpServer
by using the._pool
variable. I'll only use this library as CoAP client that's why I not further investigated this.Problems that still exists. As client you have to make a request to the server first to open an connection (I'm not 100% sure that this not possible with this library, but I wasn't able to reveal how). Something which is not really required by the RFC. It's not required that
Connection Initiator
sends a request first.I'm curious to receive your first feedback.