mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 15:37:03 +00:00
Clear all unknown prices instead of just last
This commit is contained in:
parent
191d9fa562
commit
b25564a89f
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user