ThisSmartHouse / CoogleIOT

A ESP8266 Library for easy IOT device development
https://www.thissmarthouse.net/coogleiot/
Other
120 stars 29 forks source link

Add config and mode parameters to enableSerial() call #6

Closed rlerdorf closed 6 years ago

rlerdorf commented 7 years ago

Since the 8266 has so few IO pins, it is quite common to use the RX pin for IO. To do so it is a good idea to initialize the UART using:

Serial.begin(115200, SERIAL_8N1, SERIAL_TX_ONLY);

But iot->enableSerial() didn't support that. This adds those two optional params.

coogle commented 6 years ago

Thanks for the commit!