SingingCat 0
application
|
code to manage sensors by server More...
#include <sensors/sensor.h>
#include <sensors/sensor_command.h>
#include <platform-header.h>
Go to the source code of this file.
Functions | |
void | sensor_com_config (struct command *com) |
void | sensor_com_list (struct command *com) |
Variables | |
struct sensordev | sensors [] |
list of sensors... More... | |
code to manage sensors by server
a module won't send any sensor values unless asked to do so. thus, when a module powers up the server will request a list of all sensors the module has. then, it configures each sensor, referring to it by index in the array, and wether or not it is interested in it note that we could index+1 (e.g. range is 1..n) the module returns an error if it has not yet 'probed' the sensors
also, the 'old' default mechanism of sending sensors every 5 minutes will be DISABLED once it receives a sensor_config command
Definition in file sensor_command.c.