tcpTest continued
This commit is contained in:
parent
8d1f24aac1
commit
bf73cf2351
@ -72,7 +72,17 @@ void tcpTestHandler(void *handle) {
|
|||||||
res32 = send(TCPTEST_SOCK, message, strlen(message));
|
res32 = send(TCPTEST_SOCK, message, strlen(message));
|
||||||
coloredMsg(LOG_YELLOW, "tth, sent a message, send returns 0x%02x", res32);
|
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;
|
state = 255;
|
||||||
|
break;
|
||||||
|
|
||||||
case 255:
|
case 255:
|
||||||
coloredMsg(LOG_YELLOW, "tth, error state, will stop here");
|
coloredMsg(LOG_YELLOW, "tth, error state, will stop here");
|
||||||
schDel(tcpTestHandler, NULL);
|
schDel(tcpTestHandler, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user