mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-11 15:11:38 +02:00
mqtt->rssi nicht in /ch0/, mqtt->json kein YieldDay/YieldTotal einzeln
This commit is contained in:
parent
5294ae3009
commit
59b1fe866f
3 changed files with 4 additions and 1 deletions
BIN
scripts/__pycache__/htmlPreprocessorDefines.cpython-311.pyc
Normal file
BIN
scripts/__pycache__/htmlPreprocessorDefines.cpython-311.pyc
Normal file
Binary file not shown.
|
@ -559,6 +559,9 @@ class PubMqtt {
|
|||
}
|
||||
|
||||
void sendData(Inverter<> *iv, uint8_t curInfoCmd) {
|
||||
if (cfg_mqtt->json)
|
||||
return;
|
||||
|
||||
record_t<> *rec = iv->getRecordStruct(curInfoCmd);
|
||||
|
||||
uint32_t lastTs = iv->getLastTs(rec);
|
||||
|
|
|
@ -115,7 +115,7 @@ class PubMqttIvData {
|
|||
mPublish(mSubTopic.data(), mVal.data(), true, QOS_0);
|
||||
|
||||
if((mIv->ivGen == IV_HMS) || (mIv->ivGen == IV_HMT)) {
|
||||
snprintf(mSubTopic.data(), mSubTopic.size(), "%s/ch0/rssi", mIv->config->name);
|
||||
snprintf(mSubTopic.data(), mSubTopic.size(), "%s/rssi", mIv->config->name);
|
||||
snprintf(mVal.data(), mVal.size(), "%d", mIv->rssi);
|
||||
mPublish(mSubTopic.data(), mVal.data(), false, QOS_0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue