the '\r' character prevents the program from working. removing it.
This commit is contained in:
parent
e1eefb9fd4
commit
0876124fc5
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ int main(int argc, char **argv)
|
|||
message[receivedDataLen] = '\0';
|
||||
printf("Message rec: %s", message);
|
||||
// if "time\r\n" is received, then send() back the linux epoch.
|
||||
if(strcmp(message, "time\r\n") == 0)
|
||||
if(strcmp(message, "time\n") == 0)
|
||||
{
|
||||
//
|
||||
char reply[BUFFER_SIZE];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue