Eric Jung
/
WIZnet-IoTShield-BG96-Ping
BG96 Cat.M1 Ping test sample for WIZnet IoT Shield
Revision 2:957b12467039, committed 2019-03-25
- Comitter:
- hkjung
- Date:
- Mon Mar 25 07:52:59 2019 +0000
- Parent:
- 1:8b209e861bb1
- Commit message:
- Modified ping function name
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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);