To enable some debugging print, I thought that I could add two #define-lines in the ino-file:
#define DEBUG_ESP_OTA
#define DEBUG_ESP_PORT Serial
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>But that does not work. Debugging works if I add them first in ArduinoOTA.cpp
Even if the debugging does not work, MDNS works and broadcast the OTA capabilities.
What am I doing wrong here?