From bf73cf2351a727f267279b8276f1b93832e0e4ae Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 11 Nov 2020 18:26:54 +0100 Subject: [PATCH] tcpTest continued --- cube/User/Src/tcpTest.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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);