Viktor Shin / Mbed OS WIZnet-IoTShield-AMM592-Ping
Revision:
2:957b12467039
Parent:
1:8b209e861bb1
Child:
3:52c6ebd1c8ee
diff -r 8b209e861bb1 -r 957b12467039 main.cpp
--- a/main.cpp	Wed Mar 20 05:32:43 2019 +0000
+++ b/main.cpp	Mon Mar 25 07:52:59 2019 +0000
@@ -80,7 +80,11 @@
 int8_t getIpAddress_BG96(char * ipstr);
 
 // Functions: Ping test
-void pingToHost_BG96(char * host, int timeout, int pingnum);
+void printPingToHost_BG96(char * host, int timeout, int pingnum);
+
+// Example: Ping destinations
+char ping_dest_1st[] = "8.8.8.8";
+char ping_dest_2nd[] = "www.google.com";
 
 
 Serial pc(USBTX, USBRX);    // USB debug
@@ -168,9 +172,6 @@
     
     checknSetApn_BG96(CATM1_APN_SKT);
     
-    char ping_dest_1st[] = "8.8.8.8";
-    char ping_dest_2nd[] = "www.google.com";
-    
     setContextActivate_BG96();  
     
     myprintf("[Ping] Host: %s\r\n", ping_dest_1st);