Base class for the ublox-xxx-cellular-xxx classes. Cannot be used standalone, only inherited by classes that do properly useful stuff. Or, to put it another way, if you are using any of the ublox-xxx-cellular-xxx classes, you will need this class also.

Dependents:   example-ublox-cellular-interface example-ublox-cellular-driver-gen HelloMQTT example-ublox-cellular-interface_r410M ... more

Files at this revision

API Documentation at this revision

Comitter:
rob.meades@u-blox.com
Date:
Tue Jun 13 10:08:52 2017 +0100
Parent:
1:5aaecf2572dc
Child:
3:f9b2cd6f72b1
Commit message:
Make debug prints conditional on _debug_trace_on.

Changed in this revision

UbloxCellularBase.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/UbloxCellularBase.cpp	Mon Jun 12 23:03:38 2017 +0100
+++ b/UbloxCellularBase.cpp	Tue Jun 13 10:08:52 2017 +0100
@@ -21,10 +21,10 @@
 #include "mbed_trace.h"
 #define TRACE_GROUP "UCB"
 #else
-#define tr_debug(format, ...) debug(format "\n", ## __VA_ARGS__)
-#define tr_info(format, ...)  debug(format "\n", ## __VA_ARGS__)
-#define tr_warn(format, ...)  debug(format "\n", ## __VA_ARGS__)
-#define tr_error(format, ...) debug(format "\n", ## __VA_ARGS__)
+#define tr_debug(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
+#define tr_info(format, ...)  debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
+#define tr_warn(format, ...)  debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
+#define tr_error(format, ...) debug_if(_debug_trace_on, format "\n", ## __VA_ARGS__)
 #endif
 
 /**********************************************************************