perf(influx): batch measurements and reuse HTTP connections
This commit is contained in:
@@ -34,8 +34,8 @@ static const char* TAG = "air_sensor_app";
|
||||
#define AIR_SENSOR_PROD_PRIO 6 // Producer leicht höher priorisiert
|
||||
|
||||
// Influx worker runtime (läuft in net_influx.c)
|
||||
#define INFLUX_QUEUE_LEN 16
|
||||
#define INFLUX_TASK_STACK 6144
|
||||
#define INFLUX_QUEUE_LEN 32
|
||||
#define INFLUX_TASK_STACK 8192
|
||||
#define INFLUX_TASK_PRIO 5
|
||||
|
||||
#define INFLUX_INIT_RETRY_MS 1000
|
||||
@@ -254,7 +254,7 @@ static void air_sensor_task_producer(void* arg) {
|
||||
net_influx_point_t p = {
|
||||
.measurement = "air",
|
||||
.tags = g_device_tag ? g_device_tag : "device=unknown",
|
||||
.ts_ms = 0, // Serverzeit
|
||||
.ts_ms = 0, // Messzeitpunkt; Worker richtet UTC an Server-HTTP-Date aus
|
||||
.fields = f,
|
||||
.num_fields = sizeof(f) / sizeof(f[0]),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user