Browse Source

code review: added check if mqtt is enabled before sending out values

pull/202/head
lumapu 2 years ago
parent
commit
3212aeb142
  1. 4
      tools/esp8266/app.cpp

4
tools/esp8266/app.cpp

@ -376,7 +376,8 @@ void app::processPayload(bool retransmit) {
iv->setQueuedCmdFinished();
// send out
// MQTT send out
if(mMqttActive) {
char topic[30], val[10];
for (uint8_t id = 0; id < mSys->getNumInverters(); id++)
{
@ -395,6 +396,7 @@ void app::processPayload(bool retransmit) {
}
}
}
}
#ifdef __MQTT_AFTER_RX__
doMQTT = true;

Loading…
Cancel
Save