Monthly Archives: October 2013

CoAPSharp V 0.2.1 Patch Release

Version 0.2.1 This is a patch release to the second alpha release, tagged as alpha 2 patch release. This release implements the CoAP specifications (draft-18). Please note, there are no changes to the documentation associated with this patch release. V 0.2.0 documentation will continue to be applicable to this release. The following key aspects are implemented in […]

read more

Client that Supports Observable Option

How to Write a Client that Supports the Observe Option Before you try out this sample, we suggest that you go through the CoAP observe draft or at-least read the primer of Observable Option. Pre-Requisites: You need Microsoft .NET Micro Framework 4.2 You need Visual Studio 2010 or higher (even an express edition will do) This […]

read more

Server that Supports Observable Option

How to Write a Server that Supports Observe Option Before you try out this sample, we suggest that you go through the CoAP observe draft or at-least read the primer of Observable Option. Pre-Requisites: You need Microsoft .NET Micro Framework 4.2 You need Visual Studio 2010 or higher (even an express edition will do) This […]

read more

CoAP Client that Receives Separate Response

Post Image

How to Handle Separate Response on Client Side We are assuming that you are familiar with the concept of “Separate Response”. If not, please read the CoAP specification, or at-least the primer tutorial. Pre-Requisites: You need Microsoft .NET Micro Framework 4.2 You need Visual Studio 2010 or higher (even an express edition will do) This tutorial […]

read more

CoAP Server that Sends Separate Response

Post Image

Sending Separate Response to Client We are assuming that you are familiar with the concept of “Separate Response”. If not, please read the CoAP specification, or at-least the primer tutorial. Pre-Requisites: You need Microsoft .NET Micro Framework 4.2 You need Visual Studio 2010 or higher (even an express edition will do) This tutorial will use […]

read more

CoAP Client that Sends CON Requests

Post Image

How to Send CON Requests from Client A CON request in CoAP mandates that the recipient must provide a response. There are rules for receiver and sender. Since we are focusing on client, that will send the CON request, we will focus only on sender rules. See the server sample for recipient rules. Additionally, we […]

read more

CoAP Server that Handles CON Requests

Post Image

How to handle CON requests in a Server A CON request in CoAP mandates that the recipient must provide a response. There are rules for receiver and sender. Since we are focusing on server, that will receive the CON request, we will focus only on recipient rules. See the client sample for sender rules. Also, […]

read more

Writing a CoAP Server for Resource Discovery

Post Image

A CoAP Server that Supports /.well-know/core URI Before you start this tutorial, we are assuming that you have read the post titled How machines get to know about each other. Supporting the well-know URI is a step towards allowing other machines in the network to discover what capabilities a machine has to offer. We strongly encourage […]

read more

CoAP Request and Response Rules

How do you decide what response to send back for a request CoAP specification (at the time of this writing, draft-18) does not clearly set out rules that define what would be a response for a given CON or a NON request. Embedded within the specification are various rules that are outlined. While many rules […]

read more

Your First CoAP Client

Post Image

How to write the bare-minimum (a.k.a Hello World) CoAP client There are two ways you can build the client, either using the CoAPSyncClientChannel class that uses synchronous communication, or using the CoAPClientChannel that uses asynchronous communication. This sample uses the asynchronous method. The total lines of code is less than 100. Pre-Requisites: You need Microsoft […]

read more