RC

Dependents:   WizFi250_AP_HelloWorld

Fork of WizFi250Interface by DongEun Koak

Revision:
7:ba28fe711055
Parent:
6:e149bf87a1bd
Child:
10:187e3fd24123
diff -r e149bf87a1bd -r ba28fe711055 WizFi250/WizFi250.cpp
--- a/WizFi250/WizFi250.cpp	Fri Nov 14 15:22:27 2014 +0900
+++ b/WizFi250/WizFi250.cpp	Fri Nov 14 15:27:47 2014 +0900
@@ -48,15 +48,18 @@
     }
 
     initUart(cts, rts, alarm, baud);
-    wait_ms(300);
-    setReset(false);
-    wait_ms(1000);
+    wait_ms(500);
 
-    _debug.baud(baud);
-
+    cmdAT();
     cmdMECHO(false);
-//    cmdMECHO(true);
-    cmdUSET(115200,"HW");
+    if(cts != NC && rts != NC)
+    	cmdUSET(baud,"HW");
+    else
+    	cmdUSET(baud,"N");
+
+    // WizFi250 will restart by cmdUSET command.
+    wait_ms(1000);
+    cmdAT();
 }
 
 int WizFi250::join()