JSON_BUF_OFFSET updated for raw values

This commit is contained in:
grove5_admin committed 2026-05-01 15:39:44 -07:00
1 parent 8fade93df3
commit 006f3cb2d4
1 file changed
+5 -1
+5 -1
View File
@@ -29,7 +29,11 @@
#define COLLECT_INTERVAL_MS (5UL * 60UL * 1000UL) // 30s dev; use 300000 production #define COLLECT_INTERVAL_MS (5UL * 60UL * 1000UL) // 30s dev; use 300000 production
#define SCD43_WARMUP_MS (60UL * 1000UL) #define SCD43_WARMUP_MS (60UL * 1000UL)
#define TCP_PORT 5678 #define TCP_PORT 5678
#define JSON_BUF_SIZE 2048 // Worst-case payload (10 sweep points, all fields at max width, SCD43 present):
// prefix 45 + ambient 153 + co2 72 + health 111 + baseline 66 + sweep 1750 = 2197 bytes
// + newline (println) + null terminator = 2199 bytes minimum.
// 4096 gives ~1900 bytes of headroom for future fields.
#define JSON_BUF_SIZE 4096
#ifdef ARDUINO_ARCH_ZEPHYR #ifdef ARDUINO_ARCH_ZEPHYR
IPAddress localhost(127, 0, 0, 1); IPAddress localhost(127, 0, 0, 1);