tcpTest continued

This commit is contained in:
Wolfgang Hottgenroth 2020-11-11 18:26:54 +01:00
parent 8d1f24aac1
commit bf73cf2351
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -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);