Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ESP8266 by
Revision 14:13cef05d740c, committed 2015-12-28
- 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
--- 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
