Client flush
This commit is contained in:
1 parent
6e7efe77b3
commit
53ec8c6021
1 file changed
+2
-4
@@ -127,12 +127,10 @@ void loop() {
|
||||
env.toJSON(payload, jsonBuf, sizeof(jsonBuf));
|
||||
#ifdef ARDUINO_ARCH_ZEPHYR
|
||||
client.println(jsonBuf);
|
||||
client.flush(); // push buffered bytes to the bridge — without this,
|
||||
// payload sits in the 4096-byte buffer until full
|
||||
#endif
|
||||
DBG.println(jsonBuf);
|
||||
DBG.print("[cultivar] payload sent — ");
|
||||
DBG.print("T="); DBG.print(payload.ambient.temperature, 1);
|
||||
DBG.print("C RH="); DBG.print(payload.ambient.humidity, 1);
|
||||
DBG.println("%");
|
||||
} else {
|
||||
DBG.println("[WARN] collect failed — BME690 read returned false");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user