thermferm/server.c

changeset 303
19a9a3912d03
parent 300
4ce46ff3e37d
child 306
97602274eb58
equal deleted inserted replaced
302:3d2bd47f35b4 303:19a9a3912d03
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) {

mercurial