We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
overflowed
1 parent f73f224 commit 2b2ebf2Copy full SHA for 2b2ebf2
1 file changed
lib/MQTT/BulbStateUpdater.cpp
@@ -41,7 +41,7 @@ inline void BulbStateUpdater::flushGroup(BulbId bulbId, GroupState& state) {
41
JsonObject message = json.to<JsonObject>();
42
state.applyState(message, bulbId, settings.groupStateFields);
43
44
- if (json.overflowed()) {
+ if (json.memoryUsage() >= json.capacity()) {
45
Serial.println(F("ERROR: State is too large for MQTT buffer, continuing anyway. Consider increasing MILIGHT_MQTT_JSON_BUFFER_SIZE."));
46
}
47
0 commit comments