Support library for the ESP8266 Wireless Terminal. Can also be used for communicating with any VT100-compatible terminal.

Committer:
MightyPork
Date:
Mon Mar 06 20:45:05 2017 +0000
Revision:
0:20fb68233f89
Child:
1:09dfc9fd55f4
some initial work

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MightyPork 0:20fb68233f89 1 #ifndef ESPTERM_H
MightyPork 0:20fb68233f89 2 #define ESPTERM_H
MightyPork 0:20fb68233f89 3 #include "mbed.h"
MightyPork 0:20fb68233f89 4
MightyPork 0:20fb68233f89 5 /**
MightyPork 0:20fb68233f89 6 * @brief ESP8266 Wireless Terminal interface
MightyPork 0:20fb68233f89 7 *
MightyPork 0:20fb68233f89 8 * Can be also used for sending ANSI sequences to a regular serial terminal
MightyPork 0:20fb68233f89 9 */
MightyPork 0:20fb68233f89 10 class ESPTerm {
MightyPork 0:20fb68233f89 11 private:
MightyPork 0:20fb68233f89 12 Serial* ser;
MightyPork 0:20fb68233f89 13
MightyPork 0:20fb68233f89 14 public:
MightyPork 0:20fb68233f89 15 /**
MightyPork 0:20fb68233f89 16 * @brief Create a terminal instance from an already initialized serial port
MightyPork 0:20fb68233f89 17 *
MightyPork 0:20fb68233f89 18 * Example:
MightyPork 0:20fb68233f89 19 * Serial ser(PA_2, PA_3, 115200); // for STM32F042
MightyPork 0:20fb68233f89 20 * ESPTerm term(&ser);
MightyPork 0:20fb68233f89 21 */
MightyPork 0:20fb68233f89 22 ESPTerm(Serial *s);
MightyPork 0:20fb68233f89 23 };
MightyPork 0:20fb68233f89 24
MightyPork 0:20fb68233f89 25 #endif /* ESPTERM_H */