MYAP
Dependencies: WizFi310Interface_Legacy mbed
Fork of WizFi310_Legacy_HelloWorld by
Revision 3:024e190e170f, committed 2017-09-17
- Comitter:
- ajeet3004
- Date:
- Sun Sep 17 05:57:56 2017 +0000
- Parent:
- 2:be72796d6b72
- Commit message:
- MYWIZFI310 AP program
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r be72796d6b72 -r 024e190e170f main.cpp --- a/main.cpp Sun Sep 17 05:52:41 2017 +0000 +++ b/main.cpp Sun Sep 17 05:57:56 2017 +0000 @@ -45,10 +45,13 @@ { pc.baud(115200); - printf("WizFi310 Hello World demo. \r\n"); + printf("WizFi310 AP Hello World demo. \r\n"); wizfi310.init(); - if ( wizfi310.connect(SECURE, SSID, PASS,WizFi310::WM_STATION)) return -1; + printf("After Initialisation. \r\n"); + wizfi310.setAddress("192.168.100.111","255.255.255.0","192.168.100.1"); + printf("After Set Address. \r\n"); + if ( wizfi310.connect(SECURE, SSID, PASS, WizFi310::WM_AP)) return -1; + printf("After Connect. \r\n"); printf("IP Address is %s\r\n", wizfi310.getIPAddress()); - wizfi310.disconnect(); }