전시회용

Dependencies:   Servo WizFi250Interface mbed

Fork of Remote_Boat_WIZwiki-W7500ECO_WizFi250 by jehoon song

Revision:
2:162fcc97fc52
Parent:
1:91f8a27fc9a0
Child:
3:3e8bf06dfa83
diff -r 91f8a27fc9a0 -r 162fcc97fc52 main.cpp
--- a/main.cpp	Wed Mar 30 06:11:24 2016 +0000
+++ b/main.cpp	Wed Mar 30 08:30:58 2016 +0000
@@ -126,8 +126,7 @@
     
     for(int i= 0; i<5; i++)
     {
-        wizfi250.init();
-        wizfi250.setAddress("192.168.0.2","255.255.255.0","192.168.0.2");
+        wizfi250.init("192.168.0.2","255.255.255.0","192.168.0.2");
         if ( wizfi250.connect(SECURE, SSID, PASS, WizFi250::WM_AP) )
             continue;
         else {
@@ -160,7 +159,7 @@
             return -1;
         }
         
-        if( server.listen(1) < 0)
+        if( server.listen(1) < 0 )
         {
             printf("Listen fail..\r\n");
             return -1;