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. |
||
---|---|---|
.. | ||
flash.sh | ||
Makefile | ||
poti.c | ||
project-conf.h | ||
README.md | ||
run.sh |
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.