#if !FEATURE_LWIP #error [NOT_SUPPORTED] LWIP not supported for this target #endif #if DEVICE_EMAC #error [NOT_SUPPORTED] Not supported for WiFi targets #endif #include "mbed.h" #include "EthernetInterface.h" #include "TCPSocket.h" #include "greentea-client/test_env.h" #include "unity/unity.h" #ifndef MBED_CFG_TCP_CLIENT_ECHO_BUFFER_SIZE #define MBED_CFG_TCP_CLIENT_ECHO_BUFFER_SIZE 64 #endif #ifndef MBED_CFG_TCP_CLIENT_ECHO_THREADS #define MBED_CFG_TCP_CLIENT_ECHO_THREADS 3 #endif EthernetInterface net; SocketAddress tcp_addr; Mutex iomutex; void prep_buffer(char *tx_buffer, size_t tx_size) { for (size_t i=0; i