Chat freely about anything...

User avatar
By teddyz
#90359 I test https://github.com/esp8266/Arduino/blob/master/libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino

To enable some debugging print, I thought that I could add two #define-lines in the ino-file:

Code: Select all#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?