Made Erbium function parameters const where applicable.\nMinor clean-up.
This commit is contained in:
parent
0a4c77dbff
commit
4c3e858df5
10 changed files with 99 additions and 116 deletions
|
@ -8,12 +8,16 @@ coap-client-example.c: A CoAP client that polls the /toggle resource every 10 se
|
|||
|
||||
PRELIMINARIES
|
||||
-------------
|
||||
a) For convenience, define the Cooja addresses in /etc/hosts
|
||||
a) Make sure rpl-border-router has the same stack and fits into mote memory, e.g.:
|
||||
Disable RDC in border-router project-conf.h
|
||||
#undef NETSTACK_CONF_RDC
|
||||
#define NETSTACK_CONF_RDC nullrdc_driver
|
||||
b) For convenience, define the Cooja addresses in /etc/hosts
|
||||
aaaa::0212:7401:0001:0101 cooja1
|
||||
aaaa::0212:7402:0002:0202 cooja2
|
||||
...
|
||||
b) Get the Copper CoAP browser from https://addons.mozilla.org/en-US/firefox/addon/copper-270430/
|
||||
c) Optional: Save Tmotes as default target
|
||||
c) Get the Copper CoAP browser from https://addons.mozilla.org/en-US/firefox/addon/copper-270430/
|
||||
d) Optional: Save Tmotes as default target
|
||||
$ make TARGET=sky savetarget
|
||||
|
||||
COOJA HOWTO
|
||||
|
@ -26,8 +30,10 @@ Server only:
|
|||
|
||||
With client:
|
||||
1) $ make TARGET=cooja coap-client-server-example.csc
|
||||
2) Wait until red LED toggles on mote 2 (server)
|
||||
3) Choose "Click button on Sky 3" from the context menu of mote 3 (client) and watch serial output
|
||||
2) Open new terminal
|
||||
3) $ make connect-router-cooja
|
||||
4) Wait until red LED toggles on mote 2 (server)
|
||||
5) Choose "Click button on Sky 3" from the context menu of mote 3 (client) and watch serial output
|
||||
|
||||
TMOTES HOWTO
|
||||
------------
|
||||
|
@ -50,7 +56,7 @@ Add a client:
|
|||
|
||||
DETAILS
|
||||
-------
|
||||
The Erbium CoAP currently implements draft 07.
|
||||
The Erbium CoAP currently implements draft 08.
|
||||
Central features are commented in rest-server-example.c.
|
||||
In general, apps/er-coap-07 supports:
|
||||
* All CoAP-07 header options
|
||||
|
@ -60,6 +66,15 @@ In general, apps/er-coap-07 supports:
|
|||
* Resource discovery
|
||||
* Observing Resources (see EVENT_ and PRERIODIC_RESOURCE, note COAP_MAX_OBSERVERS)
|
||||
|
||||
REST IMPLEMENTATIONS
|
||||
--------------------
|
||||
The Makefile uses WITH_COAP to configure different implementations for the Erbium REST Engine.
|
||||
* WITH_COAP=7 uses Erbium CoAP 07 apps/er-coap-07/.
|
||||
The default port for coap-07 is 5683.
|
||||
* WITH_COAP=3 uses Erbium CoAP 03 apps/er-coap-03/.
|
||||
The default port for coap-03 is 61616.
|
||||
* WITH_COAP=0 is a stub to link an Erbium HTTP engine that uses the same resource abstraction (REST.x() functions and RESOURCE macros.
|
||||
|
||||
TODOs
|
||||
-----
|
||||
* Blockwise uploads (for POST/PUT payload)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue