I have three modules.
Two of them are analog output modules (LED faders), they are now stable after inserting the MQTT subscribe in myConnectedCb().
The third is a Generic (AI, DI) input module, that publish temperature, humidity and luminosity at regular intervals. This module still freeze after inserting MQTT subscribe in myConnectedCb(). I believe the subscribe should be inserted elsewhere in an Input module.
I am now testing with MQTT subscribe in myPublishedCb(). Will report back if it works.
I hate to this but today, my ESP stopped responding again... I've had it online for maybe 4-5 days and today it stopped. I have connected the relay output pin to pin 5 which is the same as the blue led on the NodeMCU is connected to and the blue led is lit but the relay is off and I can't switch it on/off.
What about you guys, still online? My setup is, as I wrote earlier, a cheap 230V -> 3.3V charger from china which powers both the NodeMCU and the relay and I've added a 1000uf capacitor between 3.3V and ground. Debug is off and I have the new software.