osd-contiki/examples/osd/poti
Ralf Schlatterbeck c6165a3bcf Refactor GENERIC_RESOURCE macro
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.
2016-02-26 17:13:48 +01:00
..
flash.sh Add potentiometer app for setting led intensity 2015-01-26 17:27:12 +01:00
Makefile Add potentiometer app for setting led intensity 2015-01-26 17:27:12 +01:00
poti.c Refactor GENERIC_RESOURCE macro 2016-02-26 17:13:48 +01:00
project-conf.h Add potentiometer app for setting led intensity 2015-01-26 17:27:12 +01:00
README.md Add potentiometer app for setting led intensity 2015-01-26 17:27:12 +01:00
run.sh Fix run.sh scripts to use jumptable of bootloader 2016-02-19 17:32:09 +01:00

Potentiometer Driver

This App allows sending potentiometer values to a remote node. This is currently used to change colors of the led-strip app but the resource used and the IP address are configurable -- so we can use it for any other destination.

The app sends its value to the remote only if the value has changed. In addition it has a retransmit interval (in seconds) that can retransmit the value after a timeout if the value has not changed. Setting this retransmit interval to 0 will turn off the retransmit feature. Note that we sample the value only every second: We don't want to use up the whole bandwidth for this app alone.