I'm trying to use an ESP8266 with OTA and MQTT but can't make it working.
If I try only MQTT, I can make it working.
If I try only OTA, I can upload new skeches OTA as intended.
But when I try both, I can't upload new sketched OTA.
I must admit that at the moment I'm mostly copying other's code from the web without really understanding what I'm doing.
Could somebody point me out to a well commented up to date piece of code using both OTA and MQTT at the same time.
I think, I might be overwritting some OTA configuration with some MQTT ones at some point in my setup.
I have arduino 1.8.9.