diff --git a/src/app/TCPServer.h b/src/app/TCPServer.h index 7750875..1c33ed0 100644 --- a/src/app/TCPServer.h +++ b/src/app/TCPServer.h @@ -82,9 +82,9 @@ class TCPServer { T *clientPointer = createNewClient(wc); _clientList.addFirst(clientPointer); - //#ifdef DEBUG_TCPS + #ifdef DEBUG_TCPS Serial.printf("TCPServer : New client accepted. Id : %u , Number of clients : %u, local port : %u, remote port : %u\n",clientPointer->_id, _clientList.count(),clientPointer->_client.localPort(),clientPointer->_client.remotePort()); - //#endif + #endif greetClient(clientPointer); } diff --git a/src/app/WEBServer.h b/src/app/WEBServer.h index bbe4795..3684325 100644 --- a/src/app/WEBServer.h +++ b/src/app/WEBServer.h @@ -6,7 +6,7 @@ #include "SDCardManager.h" #include "HttpConstants.h" //#define DEBUG_WEBS -#define READ_WRITE_BUFFER_SIZE 2500 +#define READ_WRITE_BUFFER_SIZE 2000 template class WEBServer : public TCPServer, public HttpConstants @@ -53,7 +53,7 @@ class WEBServer : public TCPServer, public HttpConstants if(buffer != NULL) { strcpy(buffer, content); - sprintf(header,"HTTP/1.1 200 OK\r\nContent-Type: %s\r\nContent-Length: %lu\r\n\r\n%s",contentType,strlen(buffer), buffer); + sprintf(header,"HTTP/1.1 200 OK\r\nContent-Type: %s\r\nContent-Length: %d\r\n\r\n%s",contentType,strlen(buffer), buffer); free(buffer); } } diff --git a/src/app/versions.h b/src/app/versions.h index 83a0362..0bdc007 100644 --- a/src/app/versions.h +++ b/src/app/versions.h @@ -33,5 +33,7 @@ #define SOFT_VERSION "1.6.1" //Reworked the ScreenManager in order to display previous views and did some code optimization #define SOFT_VERSION "1.6.2" //Added a run method to the screen manager and reworked the error system #define SOFT_VERSION "1.6.3" //Added a new api call to get nearby wifi access points +#define SOFT_VERSION "1.6.4" //Added the forceRefresh() method to the ScreenManager Object +#define SOFT_VERSION "1.6.5" //Removed the sd card mount and unmount api calls, replaced with the sdCardAction api call which takes a parameter (does the same thing) #endif //VERSIONS_H