mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-05 11:14:00 +00:00
WIP more changes for 15min prices
This commit is contained in:
@@ -1545,7 +1545,7 @@ void MQTT_connect() {
|
||||
if(mqttHandler != NULL) {
|
||||
mqttHandler->connect();
|
||||
mqttHandler->publishSystem(&hw, ps, &ea);
|
||||
if(ps != NULL && ps->getValueForHour(PRICE_DIRECTION_IMPORT, 0) != PRICE_NO_VALUE) {
|
||||
if(ps != NULL && ps->hasPrice()) {
|
||||
mqttHandler->publishPrices(ps);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user