Sensos Module Updated
Fork of Middleware by
Diff: StringManager.cpp
- Revision:
- 2:a56763667f20
- Parent:
- 1:fd355dc296b1
--- a/StringManager.cpp Wed Dec 09 04:44:37 2015 +0000 +++ b/StringManager.cpp Wed Dec 09 04:50:13 2015 +0000 @@ -35,21 +35,6 @@ char* StringManager::processString(char* cadena, char* ipServer) { - - /* - //cadena = "set\n\r\0"; - int comp = strncmp(cadena,"set",strlen(cadena)-2); - //no comparo las ultimos dos caracteres - if(comp<0) { - //0 si las cadenas son iguales s1<s2 = -X s1>s2 = X - return "cadena is less than Str Received"; - } else if(comp>0){ La cadena dos es menor - return "Str Received is less than cadena"; - }else{ - return "String equals XD"; - } - */ - /* largo = strlen(cadena) // Para obtener el largo de una cadena strcpy(destino, origen) // Copia el contenido de origen en destino @@ -257,16 +242,4 @@ return initialString; - /* - bool get_door = GetDoorStatus(); - bool get_presence = GetPrescenceStatus(); - int get_persons = GetPersonStatus(); - int get_window1 = GetWindowStatus(1); - int get_window2 = GetWindowStatus(2); - int get_window3 = GetWindowStatus(3); - - return "reply:get:status:192.168.1.82: - door:1:light:1:window:1:1:2:1:3:1:people:12:presence:1"; - - */ }