Fixed cloud bugs

This commit is contained in:
Gunnar Skjold
2024-01-06 10:05:44 +01:00
parent 6012c19fc4
commit bad107926c
5 changed files with 6 additions and 10 deletions

View File

@@ -46,9 +46,9 @@ bool CloudConnector::setup(CloudConfig& config, MeterConfig& meter, HwTools* hw)
this->hw = hw;
this->maxPwr = 0;
this->distributionSystem = distributionSystem;
this->mainFuse = mainFuse;
this->productionCapacity = productionCapacity;
this->distributionSystem = meter.distributionSystem;
this->mainFuse = meter.mainFuse;
this->productionCapacity = meter.productionCapacity;
this->initialized = false;
@@ -286,7 +286,7 @@ void CloudConnector::update(AmsData& data, EnergyAccounting& ea) {
meterManufacturer(data.getMeterType()).c_str(),
data.getMeterModel().c_str(),
data.getMeterId().c_str(),
distributionSystemStr(distributionSystem),
distributionSystemStr(distributionSystem).c_str(),
mainFuse,
maxPwr,
productionCapacity