File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -126,10 +126,14 @@ int do_ntp()
126
126
return -1 ;
127
127
}
128
128
129
+ #ifndef MODEM_DEBUG_TRACE
130
+ #define MODEM_DEBUG_TRACE false
131
+ #endif
132
+
129
133
#if MBED_CONF_APP_PLATFORM == UBLOX
130
- UbloxCellularInterface my_iface (false );
134
+ UbloxCellularInterface my_iface (false , MODEM_DEBUG_TRACE );
131
135
#elif MBED_CONF_APP_PLATFORM == MTS_DRAGONFLY
132
- DragonFlyCellularInterface my_iface (false );
136
+ DragonFlyCellularInterface my_iface (false , MODEM_DEBUG_TRACE );
133
137
#endif
134
138
135
139
nsapi_error_t connection ()
@@ -141,7 +145,7 @@ nsapi_error_t connection()
141
145
142
146
retcode = iface->connect ();
143
147
if (retcode == NSAPI_ERROR_AUTH_FAILURE) {
144
- tr_error ( " Authentication Failure. Exiting application" );
148
+ printf ( " \n\n Authentication Failure. Exiting application\n " );
145
149
return retcode;
146
150
} else if (retcode != NSAPI_ERROR_OK) {
147
151
tr_error (" Couldn't connect: %d" , retcode);
@@ -151,7 +155,7 @@ nsapi_error_t connection()
151
155
break ;
152
156
}
153
157
154
- tr_info ( " Connection Established." );
158
+ printf ( " \n\n Connection Established.\n " );
155
159
156
160
return NSAPI_ERROR_OK;
157
161
}
@@ -204,7 +208,7 @@ int main()
204
208
}
205
209
206
210
if (getTime () == 0 ) {
207
- tr_info ( " Done. " );
211
+ printf ( " \n\n Done. \n " );
208
212
}
209
213
210
214
return 0 ;
Original file line number Diff line number Diff line change 2
2
"config" : {
3
3
"platform" : " UBLOX"
4
4
},
5
- "macros" : [" OS_MAINSTKSIZE=512" ],
5
+ "macros" : [" OS_MAINSTKSIZE=512" , " MODEM_DEBUG_TRACE=true " ],
6
6
"target_overrides" : {
7
7
"*" : {
8
8
"lwip.ipv4-enabled" : true ,
15
15
"platform.stdio-baud-rate" : 115200 ,
16
16
"platform.default-serial-baud-rate" : 115200 ,
17
17
"lwip.debug-enabled" :false ,
18
- "lwip.enable-ppp-trace" : false ,
18
+ "lwip.enable-ppp-trace" : true ,
19
19
"lwip.use-mbed-trace" : true ,
20
20
"mbed-trace.enable" : 1
21
21
}
You can’t perform that action at this time.
0 commit comments