You can use either hex, ASCII or a combination in the WebTcpIpRecvUntil function. In the following example we will receive data until an escape character followed by the ascii characters Y7 are received. We are specifying the ESC character as \x1B in this example: WebTcpipRecvUntil(hWeb0, sData, STRING_COMPLETE, nRecv, "\x1BY7"); The sequence \x specifies the next character in a hex notation, so a carriage return \r could also be specified as \x0D and a line feed \n as \x0A. Old KB# 18238
↧