Browse Source

0.7.42

* update platform for ESP32 to 6.3.2
* fix opendtufusion LED (were mixed)
* fix `last_success` transmitted to often #1124
pull/1131/head
lumapu 1 year ago
parent
commit
4a9c9f57b4
  1. 4
      src/CHANGES.md
  2. 18
      src/publisher/pubMqttIvData.h

4
src/CHANGES.md

@ -3,6 +3,10 @@
## 0.7.42 - 2023-08-27
* fix ePaper for opendtufusion_v2.x boards (Software SPI)
* add signal strength for NRF24 - PR #1119
* refactor wifi class to support ESP32 S2 PR #1127
* update platform for ESP32 to 6.3.2
* fix opendtufusion LED (were mixed)
* fix `last_success` transmitted to often #1124
## 0.7.41 - 2023-08-26
* merge PR #1117 code spelling fixes #1112

18
src/publisher/pubMqttIvData.h

@ -102,14 +102,16 @@ class PubMqttIvData {
mPos = 0;
if(found) {
record_t<> *rec = mIv->getRecordStruct(mCmd);
snprintf(mSubTopic, 32 + MAX_NAME_LENGTH, "%s/last_success", mIv->config->name);
snprintf(mVal, 40, "%d", mIv->getLastTs(rec));
mPublish(mSubTopic, mVal, true, QOS_0);
if((mIv->ivGen == IV_HMS) || (mIv->ivGen == IV_HMT)) {
snprintf(mSubTopic, 32 + MAX_NAME_LENGTH, "%s/ch0/rssi", mIv->config->name);
snprintf(mVal, 40, "%d", mIv->rssi);
mPublish(mSubTopic, mVal, false, QOS_0);
if(mIv->getLastTs(rec) != mIvLastRTRpub[mIv->id]) {
snprintf(mSubTopic, 32 + MAX_NAME_LENGTH, "%s/last_success", mIv->config->name);
snprintf(mVal, 40, "%d", mIv->getLastTs(rec));
mPublish(mSubTopic, mVal, true, QOS_0);
if((mIv->ivGen == IV_HMS) || (mIv->ivGen == IV_HMT)) {
snprintf(mSubTopic, 32 + MAX_NAME_LENGTH, "%s/ch0/rssi", mIv->config->name);
snprintf(mVal, 40, "%d", mIv->rssi);
mPublish(mSubTopic, mVal, false, QOS_0);
}
}
mIv->isProducing(); // recalculate status

Loading…
Cancel
Save