Provide an easy-to-use way to manipulate ESP8266.

Dependencies:   ArduinoAPI

Fork of WeeESP8266 by ITEAD STUDIO

Revision:
22:9b876a9b2f80
Parent:
17:60ab5d5686d3
Child:
23:b888991fd6fd
--- a/ESP8266.cpp	Wed Feb 11 06:04:07 2015 +0000
+++ b/ESP8266.cpp	Sat Mar 14 10:16:33 2015 +0000
@@ -21,9 +21,9 @@
 #include "ESP8266.h"
 #include "log.h"
 
-ESP8266::ESP8266(ArduinoSerial &uart): m_puart(&uart)
+ESP8266::ESP8266(ArduinoSerial &uart, int baud_rate): m_puart(&uart)
 {
-    m_puart->begin(9600);
+    m_puart->begin(baud_rate);
     m_puart->flush();
 }