1

Dependencies:   ATParser

Dependents:   UDPNode

Revision:
2:3518f7c570de
Parent:
1:af8bf1171171
Child:
3:72756a2b1a87
--- a/ESP8266.cpp	Wed Jun 27 07:17:17 2018 +0000
+++ b/ESP8266.cpp	Wed Jun 27 10:33:28 2018 +0000
@@ -16,8 +16,9 @@
 
 #include "ESP8266.h"
 
-ESP8266::ESP8266(PinName tx, PinName rx, bool debug)
-    : _serial(tx, rx, 1024), _parser(_serial), localOutPort(3001), localInPort(3002) {
+ESP8266::ESP8266(PinName tx, PinName rx, int locOutPort, int locInPort, bool debug)
+    : _serial(tx, rx, 1024), _parser(_serial),
+    localOutPort(locOutPort), localInPort(locInPort) {
     _serial.baud(115200);
     _parser.debugOn(debug);
 }