Init

Fork of ESP8266Interface by ESP8266

Files at this revision

API Documentation at this revision

Comitter:
fwndz
Date:
Wed Dec 21 09:04:20 2016 +0000
Parent:
47:1f4dd0e91837
Commit message:
Init

Changed in this revision

ESP8266/ESP8266.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ESP8266/ESP8266.cpp	Mon Jun 08 21:32:12 2015 +0000
+++ b/ESP8266/ESP8266.cpp	Wed Dec 21 09:04:20 2016 +0000
@@ -284,15 +284,16 @@
 
 void ESP8266::reset()
 {
-    reset_pin = 0;
-    wait_us(20);
-    reset_pin = 1;
+  //  reset_pin = 0;
+   // wait_us(20);
+   // reset_pin = 1;
     //wait(1);
     //reset_pin = !reset_pin
     //send("+++",3);
     wait(1);
     state.cmdMode = true;
     sendCommand("AT", "OK", NULL, 1000);
+    
     sendCommand("AT+RST", "ready", NULL, 10000);
     state.associated = false;