Simplify using of UnbufferedSerial(Serial), USBCDC, TCP, SMTP, NTP Fork : https://github.com/YSI-LPS/lib_Transmission
Dependents: lib_Transmission_Serial_example 2022_TICE_Electrolyse lib_Transmission_TCP_example
Diff: lib_Transmission.h
- Revision:
- 19:6c5777719ece
- Parent:
- 18:15778c8a97a1
- Child:
- 21:59c0adcdfe9b
--- a/lib_Transmission.h Wed Mar 17 14:01:17 2021 +0000 +++ b/lib_Transmission.h Tue Apr 27 13:13:24 2021 +0000 @@ -43,7 +43,7 @@ * @param * @returns */ - typedef enum { USB, SERIAL, TCP, HTTP, ANY } + typedef enum { USB_DELIVERY, SERIAL_DELIVERY, TCP_DELIVERY, HTTP_DELIVERY, ANY_DELIVERY } enum_trans_delivery; /** * @@ -51,7 +51,7 @@ * @param * @returns */ - typedef enum { WHITE, CYAN, MAGENTA_ACCEPT, BLUE_CLIENT, YELLOW_CONNECTING, GREEN_GLOBAL_UP, RED_DISCONNECTED, BLACK_INITIALIZE } + typedef enum { WHITE_STATUS, CYAN_STATUS, MAGENTA_ACCEPT, BLUE_CLIENT, YELLOW_CONNECTING, GREEN_GLOBAL_UP, RED_DISCONNECTED, BLACK_INITIALIZE } enum_trans_status; /** * @@ -183,7 +183,7 @@ * @param * @returns */ - nsapi_error_t send(const string& BUFFER="", const enum_trans_delivery& DELIVERY=ANY); + nsapi_error_t send(const string& BUFFER="", const enum_trans_delivery& DELIVERY=ANY_DELIVERY); /** * * @param