Closed
Description
Basic Infos
- [not gonna read that ] This issue complies with the issue POLICY doc.
- I have read the documentation at readthedocs and the issue is not addressed there.
- I have tested that the issue is present in current master branch (aka latest git).
- I have searched the issue tracker for a similar issue.
- If there is a stack dump, I have decoded it.
- I have filled out all fields below.
Platform
- Hardware: https://learn.sparkfun.com/tutorials/esp8266-thing-development-board-hookup-guide?_ga=2.138804790.421092098.1538252036-914235417.1536518212
- Core Version: [2018/09/24 with pull request 5126]
- Development Env: [Arduino IDE]
- Operating System: [Ubuntu]
Settings in IDE
- Module: [Sparkfun ESP8266 Thing Dev]
- Flash Mode: [no clue]
- Flash Size: [512K no SPIFFS is what it says in the Arduino IDE]
- lwip Variant: [v2 Lower Memory]
- Reset Method: [no idea]
- Flash Frequency: [no idea]
- CPU Frequency: [no idea]
- Upload Using: [SERIAL]
- Upload Speed: [any] (serial upload only)
Problem Description
In the Arduino IDE, if I select "None" for the "Debug Level" setting, I expect to not see any debug output in the serial monitor except what I output from my code (or from some third party library).
That worked as expected at least until 2.4.0.
Now with the git version, I'm getting debug output from, I think, WIFI and/or CORE, even though I select "None" as the Debug Level in the IDE.
Arduino Sketch
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#define MYDEBUG;
#ifdef MYDEBUG
char mybuffer[1024];
#endif
String client_ssid="Sixty-Seven";
String client_password="8791oetifiw";
void setup()
{
Serial.begin(115200);
myDebug("Hello!");
WiFi.mode(WIFI_STA);
WiFi.begin(client_ssid.c_str(), client_password.c_str());
for (int i=0; i<20; i++) {
myDebug("Trying to connect to Wifi '%s' with password '%s'", client_ssid.c_str(), client_password.c_str());
if (WiFi.status()==WL_CONNECTED) {
break;
}
delay(1000);
}
if (WiFi.status()!=WL_CONNECTED) {
myDebug("ERROR: Cannot connect to WiFi!!!");
return;
}
myDebug("...connected succesfully");
}
void loop() {
}
void myDebug(const char* format, ...) {
#ifdef MYDEBUG
va_list arglist;
va_start(arglist, format);
vsprintf(mybuffer, reinterpret_cast<const char*>(format), arglist);
Serial.println(mybuffer);
va_end(arglist);
#endif
}
EXPECTED Output (Serial Monitor)
Hello!
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
...connected succesfully
OBSERVED Output (Serial Monitor)
SDK:2.2.1(cfd48f3)/Core:2.4.2-54-gc3bb0b4/lwIP:2.1.0rc1(STABLE-2_1_0_RC1/glue:arduino-2.4.2-10-g5965154)/BearSSL:6d1cefc
Hello!
scandone
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
cnt
connected with Sixty-Seven, channel 1
dhcp client start...
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
ip:192.168.1.150,mask:255.255.255.0,gw:192.168.1.1
Trying to connect to Wifi 'Sixty-Seven' with password '*******'
...connected succesfully
pm open,type:2 0