Support library for the ESP8266 Wireless Terminal. Can also be used for communicating with any VT100-compatible terminal.
Diff: espterm.hpp
- Revision:
- 0:20fb68233f89
- Child:
- 1:09dfc9fd55f4
diff -r 000000000000 -r 20fb68233f89 espterm.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/espterm.hpp Mon Mar 06 20:45:05 2017 +0000 @@ -0,0 +1,25 @@ +#ifndef ESPTERM_H +#define ESPTERM_H +#include "mbed.h" + +/** + * @brief ESP8266 Wireless Terminal interface + * + * Can be also used for sending ANSI sequences to a regular serial terminal + */ +class ESPTerm { +private: + Serial* ser; + +public: + /** + * @brief Create a terminal instance from an already initialized serial port + * + * Example: + * Serial ser(PA_2, PA_3, 115200); // for STM32F042 + * ESPTerm term(&ser); + */ + ESPTerm(Serial *s); +}; + +#endif /* ESPTERM_H */