Updated the version history

This commit is contained in:
anschrammh 2020-02-02 20:57:53 +01:00
parent cb16ab7c41
commit ab6260a2ac
3 changed files with 6 additions and 4 deletions

View File

@ -82,9 +82,9 @@ class TCPServer
{ {
T *clientPointer = createNewClient(wc); T *clientPointer = createNewClient(wc);
_clientList.addFirst(clientPointer); _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()); 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); greetClient(clientPointer);
} }

View File

@ -6,7 +6,7 @@
#include "SDCardManager.h" #include "SDCardManager.h"
#include "HttpConstants.h" #include "HttpConstants.h"
//#define DEBUG_WEBS //#define DEBUG_WEBS
#define READ_WRITE_BUFFER_SIZE 2500 #define READ_WRITE_BUFFER_SIZE 2000
template <typename T> template <typename T>
class WEBServer : public TCPServer<T>, public HttpConstants class WEBServer : public TCPServer<T>, public HttpConstants
@ -53,7 +53,7 @@ class WEBServer : public TCPServer<T>, public HttpConstants
if(buffer != NULL) if(buffer != NULL)
{ {
strcpy(buffer, content); 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); free(buffer);
} }
} }

View File

@ -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.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.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.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 #endif //VERSIONS_H