WizFi310Interface for mbed OS2 ( Legacy version )

Dependents:   WizFi310_Legacy_HelloWorld WizFi310_Legacy_AP_HelloWorld WizFi310_Legacy_OpenWeatherMap WizFi310_Legacy_Geolocation_NTP ... more

Files at this revision

API Documentation at this revision

Comitter:
kaizen
Date:
Tue May 02 00:31:36 2017 +0000
Parent:
0:774ff1e8b26b
Commit message:
Remove to execute AT command procedure before initialize WizFi310 Interface.

Changed in this revision

WizFi310/WizFi310.cpp Show annotated file Show diff for this revision Revisions of this file
WizFi310/WizFi310_ifc.cpp Show annotated file Show diff for this revision Revisions of this file
WizFi310Interface.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/WizFi310/WizFi310.cpp	Wed Apr 19 00:46:44 2017 +0000
+++ b/WizFi310/WizFi310.cpp	Tue May 02 00:31:36 2017 +0000
@@ -45,11 +45,6 @@
 
     setRts(true); // release
 
-    for(int i=0;i<10;i++)
-    {
-        if( cmdAT() == 0 ) break;
-    }
-    cmdMECHO(false);
     /*
     wait_ms(500);
     cmdAT();
--- a/WizFi310/WizFi310_ifc.cpp	Wed Apr 19 00:46:44 2017 +0000
+++ b/WizFi310/WizFi310_ifc.cpp	Tue May 02 00:31:36 2017 +0000
@@ -29,7 +29,10 @@
 {
     reset();
 
-    cmdAT();
+    for(int i=0;i<10;i++)
+    {
+        if( cmdAT() == 0 ) break;
+    }
     if( cmdMECHO(false) == -1)  return false;
     //if( cmdMECHO(true) == -1) return false;
     if(_cts != NULL && _rts != NULL)
--- a/WizFi310Interface.cpp	Wed Apr 19 00:46:44 2017 +0000
+++ b/WizFi310Interface.cpp	Tue May 02 00:31:36 2017 +0000
@@ -34,6 +34,7 @@
 
 int WizFi310Interface::init(const char *name)
 {
+	startup();
     return setAddress(name);
 }