smeshlink / CoAP.NET

A C# implementation of the CoAP protocol
open.smeshlink.com/CoAP.NET/
Other
159 stars 81 forks source link

CoAP.NET-master Client and Server issue #28

Open Shriyanshmit opened 9 years ago

Shriyanshmit commented 9 years ago

Hi, I downloaded https://github.com/smeshlink/CoAP.NET. There are a number of resources in Example/Server CarelessResource, FibonacciResource, HelloWorldResource, ImageResource, LargeResource, MirrorResource, SeparateResource,StorageResource, TimeResource. I register these resources from main method. Now I want to call each resources from client. Please let me know what should I pass argument in Client for access each Resources? Is there any document for access these resources.

How we will implement the proxy in CoAP.Proxy.NET40?

Thanks Shreyansh

longshine commented 9 years ago

Sorry for the late response. I was on a business trip for a while.

The way to access different resources are documented in the RFC (http://tools.ietf.org/html/rfc7252) of CoAP. Each resource has a unique URI, i.e. coap://localhost/hello for the HelloWorldResource. When access a resource, pass its URI to a CoAP client (or a CoAP request), and it will return the result you want.

As for the CoAP proxy, you could see Example/CoAP.Proxy for reference. However, I must say that it's still an experimental feature, the usability is not garanteed :(