diff --git a/cube/User/Src/tcpTest.c b/cube/User/Src/tcpTest.c index 92b301f..b8e1a1d 100644 --- a/cube/User/Src/tcpTest.c +++ b/cube/User/Src/tcpTest.c @@ -72,7 +72,17 @@ void tcpTestHandler(void *handle) { res32 = send(TCPTEST_SOCK, message, strlen(message)); coloredMsg(LOG_YELLOW, "tth, sent a message, send returns 0x%02x", res32); + state = 4; + break; + + case 4: + coloredMsg(LOG_YELLOW, "tth, now waiting for some input"); + uint16_t s = getSn_RxMAX(TCPTEST_SOCK); + coloredMsg(LOG_YELLOW, "tth, getSn_RxMAX returns %d", s); + state = 255; + break; + case 255: coloredMsg(LOG_YELLOW, "tth, error state, will stop here"); schDel(tcpTestHandler, NULL);