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:
18:15778c8a97a1
Parent:
16:3ef69ffede76
Child:
19:6c5777719ece
--- a/lib_Transmission.h	Tue Mar 09 14:50:24 2021 +0000
+++ b/lib_Transmission.h	Wed Mar 17 14:01:17 2021 +0000
@@ -73,10 +73,53 @@
             #else
             Serial              *serial,
             #endif
+            USBCDC              *usb,
             EthernetInterface   *eth,
+            string              (*processing)(string),
+            void                (*ethup)(void) = NULL,
+            bool                caseIgnore = true);
+        /** make new Transmission instance
+        * connected to 
+        *
+        * @param 
+        * @param 
+        */
+        Transmission(
+            #if MBED_MAJOR_VERSION > 5
+            UnbufferedSerial    *serial,
+            #else
+            Serial              *serial,
+            #endif
             USBCDC              *usb,
             string              (*processing)(string),
-            void                (*startuped)(void) = NULL,
+            bool                caseIgnore = true);
+        /** make new Transmission instance
+        * connected to 
+        *
+        * @param 
+        * @param 
+        */
+        Transmission(
+            #if MBED_MAJOR_VERSION > 5
+            UnbufferedSerial    *serial,
+            #else
+            Serial              *serial,
+            #endif
+            EthernetInterface   *eth,
+            string              (*processing)(string),
+            void                (*ethup)(void) = NULL,
+            bool                caseIgnore = true);
+        /** make new Transmission instance
+        * connected to 
+        *
+        * @param 
+        * @param 
+        */
+        Transmission(
+            USBCDC              *usb,
+            EthernetInterface   *eth,
+            string              (*processing)(string),
+            void                (*ethup)(void) = NULL,
             bool                caseIgnore = true);
         /** make new Transmission instance
         * connected to 
@@ -101,7 +144,7 @@
         Transmission(
             EthernetInterface   *eth,
             string              (*processing)(string),
-            void                (*startuped)(void) = NULL,
+            void                (*ethup)(void) = NULL,
             bool                caseIgnore = true);
         /** make new Transmission instance
         * connected to 
@@ -184,10 +227,10 @@
         void                serverTCP_event(void);
 
         /* Transmission */
-        void                (*_startuped)(void);
+        void                (*_ethup)(void);
         string              (*_processing)(string);
         void                preprocessing(char *buffer, const enum_trans_delivery);
-        struct              { enum_trans_status status; bool SET; bool BREAK; bool DHCP; bool CONNECT; string IP; uint16_t TIMEOUT; uint16_t PORT; }
-                            message = { RED_DISCONNECTED, false, false, false, false, "", 100, 80 };
+        struct              { enum_trans_status status; bool SET; bool DHCP; bool CONNECT; string IP; uint16_t TIMEOUT; uint16_t PORT; }
+                            message = { RED_DISCONNECTED, false, false, false, "", 100, 80 };
 };
 #endif
\ No newline at end of file