MYmodified program
Dependencies: WizFi310Interface_Legacy mbed
Fork of WizFi310_Legacy_HelloWorld by
Revision 2:be72796d6b72, committed 2017-09-17
- Comitter:
- ajeet3004
- Date:
- Sun Sep 17 05:52:41 2017 +0000
- Parent:
- 1:54253aea3391
- Commit message:
- MYWIzfi310 program
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 54253aea3391 -r be72796d6b72 main.cpp --- a/main.cpp Wed Apr 19 00:50:36 2017 +0000 +++ b/main.cpp Sun Sep 17 05:52:41 2017 +0000 @@ -21,7 +21,7 @@ #include "mbed.h" #include "WizFi310Interface.h" -#define SECURE WizFi310::SEC_AUTO +#define SECURE WizFi310::SEC_WPA2_MIXED #define SSID "DIR-815_Wiznet" #define PASS "12345678" @@ -31,7 +31,7 @@ #endif #if defined(TARGET_WIZwiki_W7500) - WizFi310Interface wizfi250(D1,D0,D7,D8,PA_12,NC,115200); + WizFi310Interface wizfi310(D1,D0,D7,D8,PA_12,NC,115200); Serial pc(USBTX, USBRX); #endif @@ -47,7 +47,7 @@ printf("WizFi310 Hello World demo. \r\n"); wizfi310.init(); - if ( wizfi310.connect(SECURE, SSID, PASS)) return -1; + if ( wizfi310.connect(SECURE, SSID, PASS,WizFi310::WM_STATION)) return -1; printf("IP Address is %s\r\n", wizfi310.getIPAddress()); wizfi310.disconnect();