Browse Source

0.8.106

* change MqTT return value of power limit acknowledge from `boolean` to `float`. The value returned is the same as it was set to confirm reception (not the read back value)
pull/1584/head
lumapu 10 months ago
parent
commit
4de26c8bc4
  1. 1
      src/CHANGES.md
  2. 3
      src/publisher/pubMqtt.h

1
src/CHANGES.md

@ -3,6 +3,7 @@
## 0.8.106 - 2024-04-05
* fix bootloop with CMT and NRF on ESP32 #1566 #1562
* possible fix of #1553
* change MqTT return value of power limit acknowledge from `boolean` to `float`. The value returned is the same as it was set to confirm reception (not the read back value)
## 0.8.105 - 2024-04-05
* cleanup of `defines.h`

3
src/publisher/pubMqtt.h

@ -243,7 +243,8 @@ class PubMqtt {
void setPowerLimitAck(Inverter<> *iv) {
if (NULL != iv) {
snprintf(mSubTopic.data(), mSubTopic.size(), "%s/%s", iv->config->name, subtopics[MQTT_ACK_PWR_LMT]);
publish(mSubTopic.data(), "true", true, true, QOS_2);
snprintf(mVal.data(), mVal.size(), "%.1f", iv->powerLimit[0]/10.0);
publish(mSubTopic.data(), mVal.data(), true, true, QOS_2);
}
}

Loading…
Cancel
Save