Difference between revisions of "CoAP -03"

From TinyOS Wiki
Jump to: navigation, search
(New page: '''TinyOS CoAP implementation''' This page describes how to setup the TinyOS CoAP implementation based on [http://sourceforge.net/projects/libcoap/ libcoap]. This adaptation uses the Tin...)
 
Line 1: Line 1:
'''TinyOS CoAP implementation'''
+
= TinyOS CoAP =
  
This page describes how to setup the TinyOS CoAP implementation based on [http://sourceforge.net/projects/libcoap/ libcoap].
+
__TOC__
 +
 
 +
This page describes how to setup the TinyOS CoAP implementation based on [http://sourceforge.net/projects/libcoap/ libcoap], which implements the Constrained Application Protocol (CoAP) [[http://tools.ietf.org/id/draft-ietf-core-coap-03.txt|draft-ietf-core-coap-03]].
  
 
This adaptation uses the TinyOS [[BLIP_Tutorial|blip]] stack for UDP communication.
 
This adaptation uses the TinyOS [[BLIP_Tutorial|blip]] stack for UDP communication.
  
TODO....
+
= Installation instructions =
 +
 
 +
git tinyos-main from mab
 +
 
 +
git submodule libcoap
 +
 
 +
TODO
 +
 
 +
= Important parts of TinyOS CoAP =
 +
 
 +
{| border="0" cellpadding="5" cellspacing="5"
 +
|-
 +
| $TOSROOT/apps/CoapBlip/*
 +
| Sample application
 +
|-
 +
| $TOSROOT/support/make/coap.extra
 +
| Makefile extension for CoAP
 +
|-
 +
| $TOSROOT/tos/lib/app/coap/*
 +
| Core libcoap TinyOS adaptation
 +
|-
 +
|
 +
{| border="0" cellpadding="0" cellspacing="0"
 +
| $TOSROOT/tos/interfaces/ReadResource.nc
 +
|-
 +
| $TOSROOT/tos/interfaces/WriteResource.nc
 +
|-
 +
| $TOSROOT/tos/interfaces/LibCoAP.nc
 +
|}
 +
| CoAP interfaces
 +
|}
 +
 
 +
= Wiring your resource to the application =
 +
 
 +
ReadResource
 +
 
 +
WriteResource
 +
 
 +
TODO

Revision as of 01:34, 14 February 2011

TinyOS CoAP

This page describes how to setup the TinyOS CoAP implementation based on libcoap, which implements the Constrained Application Protocol (CoAP) [[1]].

This adaptation uses the TinyOS blip stack for UDP communication.

Installation instructions

git tinyos-main from mab

git submodule libcoap

TODO

Important parts of TinyOS CoAP

$TOSROOT/apps/CoapBlip/* Sample application
$TOSROOT/support/make/coap.extra Makefile extension for CoAP
$TOSROOT/tos/lib/app/coap/* Core libcoap TinyOS adaptation
$TOSROOT/tos/interfaces/ReadResource.nc
$TOSROOT/tos/interfaces/WriteResource.nc
$TOSROOT/tos/interfaces/LibCoAP.nc
CoAP interfaces

Wiring your resource to the application

ReadResource

WriteResource

TODO