Compare commits

...

4 Commits

Author SHA1 Message Date
cea2bf8f64 Fixed merge conflicts 2020-07-17 12:29:32 +02:00
92c94c7c88 Renamed an error message 2020-07-17 12:24:55 +02:00
186c74a6ca Added the const specifier 2020-07-17 12:24:20 +02:00
c3812a8a26 Added the Arduino.h include 2020-07-17 12:24:00 +02:00
3 changed files with 5 additions and 3 deletions

View File

@ -34,7 +34,7 @@ namespace DictionaryHelper
strcpy(_string, Object._string);
}
~StringEntity(){free(_string);}
const char *getString(){return _string;}
const char *getString() const {return _string;}
void setString(const char *string = NULL)
{
free(_string);_string = NULL;

View File

@ -1,5 +1,6 @@
#ifndef QUEUE_H
#define QUEUE_H
#include <Arduino.h>
template <typename T>
class Queue

View File

@ -588,9 +588,10 @@ class WEBServer : public TCPServer<T>, public HttpConstants
return false;
break;
}
}else
}
else
{
sendInfoResponse(HTTP_CODE::HTTP_CODE_INTERNAL_SERVER_ERROR, client, "Unable to access the SDCard");
sendInfoResponse(HTTP_CODE::HTTP_CODE_INTERNAL_SERVER_ERROR, client, "Api endpoint does not exist");
return false;
}