4#include "core/globals.h"
26#define SENSOR_PLUGIN_API_VERSION 1
55 int (*shutdown)(void);
One air quality reading: pollutant values plus sensor/timestamp metadata.
Runtime contract every sensor plugin (.so/.dylib/.dll) must implement.
int sensor_id
Numeric identifier stored alongside readings in the database.
const char * description
Short description shown in sensor info/listing screens.
int api_version
Must equal SENSOR_PLUGIN_API_VERSION at build time.
const char * plugin_version
Plugin version string, e.g.
const char * name
Human-readable sensor name, e.g.
Legacy sensor interface, superseded by SensorPlugin.