hjkjhgfdfgh

Dependencies:   WizFi310Interface_Legacynew mbed

Fork of WizFi310_AP by ajeet prajapati

Revision:
1:abf832a04e02
Parent:
0:8c36d001e470
Child:
2:b7c66f67341b
--- a/main.cpp	Mon Sep 18 03:29:44 2017 +0000
+++ b/main.cpp	Mon Sep 18 03:44:09 2017 +0000
@@ -23,10 +23,8 @@
 
 
 #define SECURE WizFi310::SEC_WPA2_MIXED
-#define SSID "CDI"
-#define PASS "Cdi*1717"
-/*#define SSID "CDIWIZFI310TEST"
-#define PASS "1234567890"*/
+#define SSID "CDIWIZFI310TEST"
+#define PASS "1234567890"
 
 #if defined(TARGET_WIZwiki_W7500)
     WizFi310Interface wizfi310(D1, D0, D7, D6, D8, NC, 115200);
@@ -43,12 +41,13 @@
 {
     pc.baud(115200);
  
-    printf("WizFi310  STATION. \r\n");
+    printf("WizFi310  AP. \r\n");
     wizfi310.init();
     printf("After Initialisation. \r\n");
 
     printf("After Set Address. \r\n");
-    if ( wizfi310.connect(SECURE, SSID, PASS, WizFi310::WM_STATION))      return -1;
+    wizfi310.setAddress("192.168.100.1","255.255.255.0","192.168.100.1");
+    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.test_weathermap();