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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user