Components / ESP8266

Dependencies:   ATParser

Dependents:   ESP8266Interface

Fork of ESP8266 by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Mon Dec 28 05:38:00 2015 +0000
Parent:
13:4c014a7f0c63
Child:
15:640a262a93e1
Commit message:
expose debug through the constructor

Changed in this revision

ATParser.lib Show annotated file Show diff for this revision Revisions of this file
ESP8266.cpp Show annotated file Show diff for this revision Revisions of this file
ESP8266.h Show annotated file Show diff for this revision Revisions of this file
--- a/ATParser.lib	Wed Aug 05 21:57:41 2015 +0000
+++ b/ATParser.lib	Mon Dec 28 05:38:00 2015 +0000
@@ -1,1 +1,1 @@
-http://developer.mbed.org/teams/NetworkSocketAPI/code/ATParser/#553f9ffaf657
+http://developer.mbed.org/teams/NetworkSocketAPI/code/ATParser/#fd406d4c4227
--- a/ESP8266.cpp	Wed Aug 05 21:57:41 2015 +0000
+++ b/ESP8266.cpp	Mon Dec 28 05:38:00 2015 +0000
@@ -16,9 +16,10 @@
 
 #include "ESP8266.h"
 
-ESP8266::ESP8266(PinName tx, PinName rx) : serial(tx, rx), atParser(serial)
+ESP8266::ESP8266(PinName tx, PinName rx, uint8_t debug) : serial(tx, rx), atParser(serial)
 {
     serial.baud(115200);
+    atParser.debugOn(debug);
 }
 
 bool ESP8266::startup(void)
--- a/ESP8266.h	Wed Aug 05 21:57:41 2015 +0000
+++ b/ESP8266.h	Mon Dec 28 05:38:00 2015 +0000
@@ -26,7 +26,7 @@
 class ESP8266 
 {
 public:
-    ESP8266(PinName tx, PinName rx);
+    ESP8266(PinName tx, PinName rx, uint8_t debug = 0);
     
     /**
     * Test startup of ESP8266