c6165a3bcf
Now callback functions get the URI of the request, this allows to use a single resource for multiple different URIs. The is_json flag is now gone for the to-string function, instead the macro has an is_str flag. If set this automagically produces quotes around the string for json output. Now from-string functions can return an error-code, 0 for success, -1 for error. |
||
---|---|---|
.. | ||
arduino-example.c | ||
flash.sh | ||
led_pwm.h | ||
Makefile | ||
project-conf.h | ||
README.md | ||
resource_led_pwm.c | ||
run.sh | ||
sketch.pde |
Arduino compatibility example
This example shows that it is now possible to re-use arduino sketches in
Contiki. This example documents the necessary magic. Arduino specifies
two routines, setup
and loop
. Before setup
is called, the
framework initializes hardware. In original Arduino, all this is done in
a main
function (in C). For contiki we define a process that does the
same.
See the documentation file in apps/contiki-compat/README.md