@@ -4,7 +4,7 @@ Library for Arduino to debug devices over WiFi (telnet) with Print commands like
44
55![ logo] ( extras/readme_media/logo.png )
66
7- [ ![ build badge] ( https://img.shields.io/badge/version-v2.0.2 -blue.svg )] ( #releases )
7+ [ ![ build badge] ( https://img.shields.io/badge/version-v2.1.0 -blue.svg )] ( #releases )
88[ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/3eadfd19246f4808907cf53599a6b9f0 )] ( https://www.codacy.com/app/JoaoLopesF/RemoteDebug?utm_source=github.com& ; utm_medium=referral& ; utm_content=JoaoLopesF/RemoteDebug& ; utm_campaign=Badge_Grade )
99[ ![ platform badge] ( https://img.shields.io/badge/platform-Arduino_Espressif-orange.svg )] ( https://github.com/arduino )
1010[ ![ GitHub] ( https://img.shields.io/github/license/mashape/apistatus.svg )] ( https://github.com/JoaoLopesF/RemoteDebug/blob/master/LICENSE.txt )
@@ -346,6 +346,7 @@ debugHandle(); // Equal to SerialDebug
346346In any place of you code:
347347
348348```cpp
349+ #ifndef DEBUG_DISABLED
349350if (Debug.isActive(Debug.<level>)) {
350351 Debug.printf("bla bla bla: %d %s", number, str); // OR
351352 Debug.printf("bla bla bla: %d %s", number, str.c_str()); // Note: if type is String need c_str() // OR
@@ -355,8 +356,12 @@ if (Debug.isActive(Debug.<level>)) {
355356 // you can use my ArduinoUtil library -> https://github.com/JoaoLopesF/ArduinoUtil
356357 Debug.printf("float: %s\n", Util.formatFloat(value, 0, 5).c_str());
357358}
359+ #endif
358360```
359361
362+ Note: Using isActive, you need surround the code by DEBUG_DISABLE precompile condition,
363+ to avoid compile it for production/release
364+
360365Or short way (equal to SerialDebug) (prefered if only one debug at time):
361366
362367```cpp
@@ -462,6 +467,12 @@ In advanced sample, I used WifiManager library, ArduinoOTA and mDNS, please see
462467
463468## Releases
464469
470+ ### 2.1.0 - 2019-03-04
471+
472+ - Create precompiler DEBUG_DISABLED to compile for production/release,
473+ equal that have in SerialDebug
474+ - Adjustments in examples
475+
465476### 2.0.1 - 2019-03-01
466477
467478 - Adjustments for the debugger: it still disable until dbg command, equal to SerialDebug
0 commit comments