MYAP

Dependencies:   WizFi310Interface_Legacy mbed

Fork of WizFi310_Legacy_HelloWorld by WIZnet

Revision:
3:024e190e170f
Parent:
2:be72796d6b72
--- 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();
 }