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

Revision:
12:e22ff63d237c
Parent:
11:de94dcd67561
Child:
13:1e13e40b03c9
--- a/lib_Transmission.h	Thu Dec 10 09:49:22 2020 +0000
+++ b/lib_Transmission.h	Fri Dec 11 09:12:40 2020 +0000
@@ -45,7 +45,11 @@
         * @param 
         * @param 
         */
+        #if MBED_MAJOR_VERSION > 5
         Transmission(UnbufferedSerial *serial, EthernetInterface *eth, void(*init)(void), void(*processing)(string, Transmission::enum_trans_to));
+        #else
+        Transmission(Serial *serial, EthernetInterface *eth, void(*init)(void), void(*processing)(string, Transmission::enum_trans_to));
+        #endif
         
         /** 
         *
@@ -93,7 +97,11 @@
     private:
         Thread              _queueThread;
         EventQueue          _queue;
+        #if MBED_MAJOR_VERSION > 5
         UnbufferedSerial    *_serial;
+        #else
+        Serial              *_serial;
+        #endif
         EthernetInterface   *_eth;
         TCPSocket           *_clientTCP = NULL;
         TCPSocket           _serverTCP;