added comment about mqtt reconnect

This commit is contained in:
Andreas Schiffler 2022-08-19 13:18:00 +02:00
parent 4f62d10598
commit 0b968b4591

View file

@ -186,7 +186,7 @@ void app::loop(void) {
if(checkTicker(&mTicker, 1000)) {
if((++mMqttTicker >= mMqttInterval) && (mMqttInterval != 0xffff) && mMqttActive) {
mMqttTicker = 0;
mMqtt.isConnected(true);
mMqtt.isConnected(true); // really needed? See comment from HorstG-57 #176
char topic[30], val[10];
for(uint8_t id = 0; id < mSys->getNumInverters(); id++) {
Inverter<> *iv = mSys->getInverterByPos(id);