Commit Graph

590 Commits

Author SHA1 Message Date
eb0a370cda Reworked how the time is tracked by the system in general. The external RTC is now only used to set the internal time once. This also allows cleaner File System time handling since we don't need to define a custom callback anymore 2022-05-01 16:25:56 +02:00
Anatole SCHRAMM
720f2e9579 Removed the unused variable warning in the new WEB API endpoint, changed the way sent files are handled regarding the sent bytes count both for the FTPServer and WEBServer 2022-04-29 09:58:15 +02:00
anschrammh
9247d261cf Added new WEB API end point which will later be used to perform OTA Updates 2022-04-29 07:54:45 +02:00
anschrammh
306bb3a932 Changed a debug printf statement and added a new API end point which will be used for ota updates 2022-04-29 07:52:01 +02:00
anschrammh
966177a209 The WEB Server root directory is now copied so that the parameter doesn't have to live during the whole life of the program 2022-04-29 07:50:33 +02:00
anschrammh
2449ab6013 Removed useless new line 2022-04-29 07:48:49 +02:00
anschrammh
95ae6927e8 The FTP root directory string is now copied so that the parameter doesn't have to live during the whole life of the program 2022-04-29 07:48:07 +02:00
anschrammh
714b167aef Corrected indentation 2022-04-29 07:44:58 +02:00
anschrammh
a4da8959e9 Cleaned the way config parameters are applied 2022-04-25 21:25:32 +02:00
f96ccfd8a1 Reworked the auto off implementation as well as changed the way the screen config parameters are applied from the SDCard 2022-04-24 17:35:15 +02:00
a950b5b28e Fixed typo 2022-04-24 17:33:59 +02:00
c6d4a9b111 Changed SSID_HIDDEN parameter name to HIDE_SSID 2022-04-24 17:33:21 +02:00
71c69e1a16 Reworked the way the screen goes in and out from sleep, so checking if the screen is enable or not does not make any sense anymore 2022-04-24 17:31:50 +02:00
511dcbbfd8 Mise à jour de 'sdCard_content/CONFIG/AP.CFG' 2022-04-24 13:36:57 +02:00
898a5a1c66 Mise à jour de 'sdCard_content/CONFIG/SCREEN.CFG' 2022-04-24 13:35:18 +02:00
6cbe3de785 Mise à jour de 'README.md' 2022-04-24 08:50:15 +02:00
df344464b3 Updated version history 2022-04-23 22:58:10 +02:00
4635f4daaa Added the new mallocWithFallback function which tries to allocate the specified size and falls back to a smaller size when fails 2022-04-23 22:51:52 +02:00
d9dfc15f21 Added the IP address of the device when in AP mode in the task_sys_info task 2022-04-23 22:49:47 +02:00
6130e8cd71 Reworked the way the main send buffer buffer is allocated. This is not done on the stack anymore because it led to a nasty stackoverflow. Changed some debug statements, finished the sendDirectoryListing method which is now working fine. Txt files are now sent as text/plain data. 2022-04-23 22:48:26 +02:00
16cae233bb Changed attribute type from uint64_t to size_t 2022-04-23 22:44:16 +02:00
057c058ca3 Renamed FtpMsgCode to FTPMsgCode, Added new state in the FileTransferStatus enum : MALLOC_ERROR, reworked the way the send and receive buffer is allocated, this is not done on the stack anymore which led to a silent stack overflow :-(. Changed the way the IP address is retrieved to open the passive connection 2022-04-23 22:39:46 +02:00
4297df4acb Changed uint64_t attribute type to size_t 2022-04-23 22:31:30 +02:00
anschrammh
db1873b714 Replaced the previous http header sends by the new way of doing it : ie using the sendHTTPHeader helper function 2022-04-22 08:10:02 +02:00
anschrammh
1c1992820d Removed the powerSettingsApi endpoint because changing the MCU frequency on the fly is no more supported by the underlying SDK 2022-04-22 08:06:36 +02:00
anschrammh
9d831f11d9 Started to add a method listing the files in a directory if the rsrc asked is a folder,like apache2 does. Not finished yet 2022-04-22 08:05:16 +02:00
anschrammh
8c6dd39bd7 Added return value to displayNextView(); and displayPreviousView(); telling if the action was a success or not 2022-04-22 08:03:14 +02:00
anschrammh
11f3f85dde Added return value to displayNextView(); and displayPreviousView(); telling if the action was a success or not 2022-04-22 08:02:51 +02:00
anschrammh
2943ed5da6 Added ico image type MIME support 2022-04-22 08:01:30 +02:00
e68ab04195 Added the persistent constructor parameter, as well as added the connect method to ease the class's instantiation 2022-04-17 21:58:10 +02:00
285c9ef20b Removed the use of the lastIndexOf function which was replaced by the builtin strrchr function 2022-04-17 21:54:41 +02:00
f981c06fc3 Corrected a spelling mistake 2022-04-17 21:53:17 +02:00
16f917a0b2 Changed the way the ConnectivityManager is instantiated, it is no more newed and deleted 2022-04-17 21:52:02 +02:00
1e453eb5d8 Added the display auto power off functionality 2022-04-17 21:50:05 +02:00
453f4cdd6e Replaced NULL with nullptr, removed constant value attribute initialization from the initializer list 2022-04-17 21:48:56 +02:00
365b7764a2 Added some comments, removed _httpRequestData.getParamsDataPointer which isn't used anymore 2022-04-17 21:43:17 +02:00
ec7c608dfe Renamed the HttpParserStatus enum members for the sake of consistency, added the 414 http error : URI too long, reworked the parsing of http resource queries, removedd the use of lastIndexOf, replaced useless strstr with strchr where needed 2022-04-17 21:41:50 +02:00
5d05bdb144 Officially retiring the WEBServerManager class which is superseded by the WEBServer class that have more features 2022-04-17 21:38:30 +02:00
fb9ad7d95e Renamed task_batt_sensing to task_sys_info as well as added the display auto off and wake up feature 2022-04-17 21:36:44 +02:00
62b5957895 Renamed the task_batt_sensing task to task_sys_info and added displayed information like IP address or RAM consumption 2022-04-17 21:35:32 +02:00
4a7765fc35 Removed the lastIndexOf function returning the last occurence of a character in a string, using builtin strrchr instead 2022-04-17 21:33:27 +02:00
df4159668c Updated version history 2022-04-17 21:26:02 +02:00
anschrammh
4296eeac28 else if on new line 2022-04-15 08:55:25 +02:00
anschrammh
f1d6fddd0d Added my own made CI config file in order to build the firmware upon commits 2022-04-12 00:14:40 +02:00
43b4f78243 Updated Author top comment 2022-04-10 17:40:04 +02:00
e3cdaafd88 Updated the sendHttpQuery method to now return an error code which tells the line corresponding to the return of the failure 2022-04-09 19:10:18 +02:00
anschrammh
32e32e46d2 Now handling range bytes request :) 2022-04-07 01:20:13 +02:00
anschrammh
bf4caea902 Started to implement the : static const char *httpStatusToString(HTTP_CODE c) method 2022-04-07 01:19:03 +02:00
anschrammh
bf05086381 Added new structure to handle partial content requests 2022-04-07 01:18:01 +02:00
anschrammh
5fb02304be Updated some API endpoints due to the renaming of the injectApiHeader method 2022-04-05 21:05:24 +02:00