File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ void print_function(const char *input_string)
60
60
{
61
61
PrintMutex.lock ();
62
62
printf (" %s" , input_string);
63
+ fflush (NULL );
63
64
PrintMutex.unlock ();
64
65
}
65
66
@@ -69,7 +70,7 @@ void dot_event()
69
70
while (true ) {
70
71
wait (4 );
71
72
if (!iface.is_connected ()) {
72
- print_function (" Connection not ready... \n " );
73
+ print_function (" . " );
73
74
} else {
74
75
break ;
75
76
}
@@ -203,7 +204,8 @@ int main()
203
204
/* Set network credentials here, e.g., APN*/
204
205
iface.set_credentials (MBED_CONF_APP_APN, MBED_CONF_APP_USERNAME, MBED_CONF_APP_PASSWORD);
205
206
206
- print_function (" \n\n mbed-os-example-cellular, Connecting...\n " );
207
+ print_function (" \n\n mbed-os-example-cellular\n " );
208
+ print_function (" Establishing connection " );
207
209
dot_thread.start (dot_event);
208
210
209
211
/* Attempt to connect to a cellular network */
You can’t perform that action at this time.
0 commit comments