1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 07:23:07 +01:00

handle priorities in boat data

This commit is contained in:
andreas
2021-11-01 11:41:41 +01:00
parent 14b04fb4a0
commit 0bdcc8fff2
4 changed files with 20 additions and 10 deletions

View File

@@ -19,7 +19,7 @@ String GwBoatData::toJson() const {
count++;
elementSizes+=(*it)->getJsonSize();
}
DynamicJsonDocument json(JSON_OBJECT_SIZE(count)+elementSizes);
DynamicJsonDocument json(JSON_OBJECT_SIZE(count)+elementSizes+4);
for (it=values.begin() ; it != values.end();it++){
(*it)->toJsonDoc(&json,minTime);
}