perf(influx): batch measurements and reuse HTTP connections

This commit is contained in:
root
2026-11-11 22:57:12 +00:00
parent dde4736cc2
commit e88623cf6e
11 changed files with 782 additions and 325 deletions
+3 -3
View File
@@ -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]),
};