1998 srv_send((char *)"UNIT GET uuid Get Unit record by uuid"); |
1998 srv_send((char *)"UNIT GET uuid Get Unit record by uuid"); |
1999 srv_send((char *)"UNIT PUT uuid Put Unit record by uuid"); |
1999 srv_send((char *)"UNIT PUT uuid Put Unit record by uuid"); |
2000 srv_send((char *)"."); |
2000 srv_send((char *)"."); |
2001 } else if (strncmp(buf, "LIST", 4) == 0) { |
2001 } else if (strncmp(buf, "LIST", 4) == 0) { |
2002 cmd_list(buf); |
2002 cmd_list(buf); |
|
2003 } else if (strncmp(buf, "PING", 4) == 0) { |
|
2004 srv_send((char *)"101 PONG"); |
2003 } else if (strncmp(buf, "PROFILE", 7) == 0) { |
2005 } else if (strncmp(buf, "PROFILE", 7) == 0) { |
2004 if (cmd_profile(buf) == 0) |
2006 if (cmd_profile(buf) == 0) |
2005 wrconfig(); |
2007 wrconfig(); |
2006 #ifdef USE_SIMULATOR |
2008 #ifdef USE_SIMULATOR |
2007 } else if (strncmp(buf, "SIMULATOR", 9) == 0) { |
2009 } else if (strncmp(buf, "SIMULATOR", 9) == 0) { |