Transfer data between UART ports and Ethernet.

Dependencies:   BufferedSerial

Transfer data between UART ports and Ethernet.

  • Support multiple UART ports.
  • Support fixed IP address and DHCP.
  • Support TCP server and TCP client modes.
  • Support a simple web server for UART and Ethernet configuration.
Revision:
8:e9248126f512
Parent:
7:cbb5a2a2a0d2
--- a/ste_config.h	Wed Feb 26 07:55:51 2020 +0000
+++ b/ste_config.h	Fri Feb 26 06:30:37 2021 +0000
@@ -10,10 +10,13 @@
 
 #include "mbed.h"
 #include "EthernetInterface.h"
-#include "BufferedSerial.h"
 #include "FATFileSystem.h"
 #include "NuSDBlockDevice.h"
 
+#if MBED_MAJOR_VERSION <= 5
+#include "BufferedSerial.h"
+#endif
+
 /* A simple web server for network and UART configuration
    0: Disable the web server.
    1: Enable the web server
@@ -76,7 +79,7 @@
     unsigned short  server_port;    // Server port for TCP client mode
 } S_PORT_CONFIG;
 
-extern RawSerial output;        // for debug output
+//extern RawSerial output;        // for debug output
 extern EthernetInterface eth;
 extern S_PORT_CONFIG port_config[MAX_UART_PORTS];
 extern S_NET_CONFIG net_config;