mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-10 15:36:38 +02:00
code review: added check if mqtt is enabled before sending out values
This commit is contained in:
parent
8bf539aea4
commit
3212aeb142
1 changed files with 15 additions and 13 deletions
|
@ -376,7 +376,8 @@ void app::processPayload(bool retransmit) {
|
||||||
|
|
||||||
iv->setQueuedCmdFinished();
|
iv->setQueuedCmdFinished();
|
||||||
|
|
||||||
// send out
|
// MQTT send out
|
||||||
|
if(mMqttActive) {
|
||||||
char topic[30], val[10];
|
char topic[30], val[10];
|
||||||
for (uint8_t id = 0; id < mSys->getNumInverters(); id++)
|
for (uint8_t id = 0; id < mSys->getNumInverters(); id++)
|
||||||
{
|
{
|
||||||
|
@ -395,6 +396,7 @@ void app::processPayload(bool retransmit) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __MQTT_AFTER_RX__
|
#ifdef __MQTT_AFTER_RX__
|
||||||
doMQTT = true;
|
doMQTT = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue