mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-27 04:33:04 +00:00
Clear all unknown prices instead of just last
This commit is contained in:
@@ -181,7 +181,6 @@ bool RawMqttHandler::publishPrices(EntsoeApi* eapi) {
|
||||
float val = values[i];
|
||||
if(val == ENTSOE_NO_VALUE) {
|
||||
mqtt->publish(topic + "/price/" + String(i), "", true, 0);
|
||||
break;
|
||||
} else {
|
||||
mqtt->publish(topic + "/price/" + String(i), String(val, 4), true, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user