replace the use of calculate buffer by a constant buffer size for json size
This commit is contained in:
1 parent
618f8d6087
commit
2ee18320be
5 files changed
+5
-10
No files matched your search
+1
-2
@@ -129,8 +129,7 @@ void MeasureTempHumAndPressure()
|
||||
trc(F("Failed to read from Weather Sensor BME280!"));
|
||||
}else{
|
||||
trc(F("Creating BME280 buffer"));
|
||||
const int JSON_MSG_CALC_BUFFER = JSON_OBJECT_SIZE(6);
|
||||
StaticJsonBuffer<JSON_MSG_CALC_BUFFER> jsonBuffer;
|
||||
StaticJsonBuffer<JSON_MSG_BUFFER> jsonBuffer;
|
||||
JsonObject& BME280data = jsonBuffer.createObject();
|
||||
// Generate Temperature in degrees C
|
||||
if(BmeTempC != persisted_bme_tempc || bme280_always){
|
||||
|
||||
Reference in new issue
Block a user