I have just run the Examples / ArduinoOTA / BasicOTA on an ESP32 development board and it works fine.
I have been following an online tutorial and I am trying to merge this sketch to an existing sketch that I have by adding a few lines at a time and then compiling to check if all is OK.
My problem is, the line #include <ESPmDNS.h> fails to compile with "ESPmDNS.h No such file or directory"
Today I tried again to compile my sketch and it compiles and runs.
I have no idea why this has happened. I did not do anything other than shut my PC down for the night.
I am wondering if I need some type of tidy up in my folder structure / Arduino IDE as I often get strange glitches mainly when compiling. I can reset my PC and come back to Arduino IDE and all is fine again.#