|
Contiki 3.x
|
Process that periodically takes samples from onboard sensors and stores them in flash. More...
#include <stdbool.h>#include "contiki.h"#include "settings.pb.h"Go to the source code of this file.
Functions | |
| PROCESS_NAME (sample_process) | |
| Process the sampler runs as. | |
| void | sampler_refresh_config (void) |
| Get the Sampler to reload it's config from flash. More... | |
| bool | sampler_check_config (SensorConfig *config) |
| Check a config for sanity. More... | |
Process that periodically takes samples from onboard sensors and stores them in flash.
The sensors to sample as well as the sampling interval are defined by the SampleConfig stored in the Store. The sampler can be instrcuted to reload it from the Store by calling sampler_refresh_config()
Definition in file sampler.h.
| bool sampler_check_config | ( | SensorConfig * | config | ) |
| void sampler_refresh_config | ( | void | ) |
Get the Sampler to reload it's config from flash.
This is a non blocking asynchronous call.
Definition at line 261 of file sampler.c.
References NULL, and process_post().
1.8.6