Commit Graph

446 Commits

Author SHA1 Message Date
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
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
anschrammh
651d0ee060 Renamed the injectApiHeader to sendHTTPHeader and cleaned it, also did other improvements 2022-04-05 21:03:53 +02:00
anschrammh
847b350f82 Updated the HttpClient class due to changes to the httpVersionToString and httpMIMETypeToString methods 2022-04-05 21:00:50 +02:00
anschrammh
4c7fc2ea2a Added new mime types to string as well as simplified the httpMIMETypeToString method 2022-04-05 20:57:56 +02:00
anschrammh
e7cff6287f Updated versions history 2022-04-04 21:42:28 +02:00
anschrammh
7e58804af9 Now using a non blocking delay object :) 2022-04-04 21:41:35 +02:00
anschrammh
4f265e4c79 Added a new very simple class to cleanly perform non blocking delays 2022-04-04 21:39:33 +02:00
cd2b2ba624 No changes ... 2022-03-30 12:15:32 +02:00
1c1945d0ca Corrected a NULL pointer dereference 2022-03-30 12:15:09 +02:00
e5d250556f Removed fixed some warnings 2022-03-30 12:00:13 +02:00
e732cf48aa Removed a bunch of warnings + re added SPI_FULL_SPEED default value in the BoardConfig.h 2022-03-30 11:04:12 +02:00
ef8d944dd3 Removed explicit copy constructor which had no real use 2022-03-30 11:02:24 +02:00
460db55496 Removed as many warnings as I could ... after enabling the all warning compiler flag 2022-03-29 23:25:27 +02:00
d2f620597c Renamed ICACHE_RAM_ATTR to IRAM_ATTR because the former was deprecated, removed the multiline comment and replaced it with an #if statement 2022-03-29 23:23:47 +02:00
4dca5a0f1a Added parenthesis arround ternary expression 2022-03-29 23:20:19 +02:00
6b1a06f1f7 Corrected a bad array index overflow in the apiTesterApi function :( 2022-03-29 23:18:43 +02:00
fb1d592dd1 Updated version number and comment 2022-03-29 23:17:28 +02:00
anschrammh
74b0bf810c Updated the WebSockets librarie because it didn't work with the version 3.0.2 of the sdk anymore due to a change in the SSL classes 2021-12-19 13:14:00 +01:00
anschrammh
dc0a2d3517 Added #undef directive to unset the FILE_READWRITE define if it was previously set 2021-12-19 13:12:36 +01:00
anschrammh
8d305ec4da Updated the SDFS librarie because it was updated in the sdk. 2021-12-19 13:10:41 +01:00
anschrammh
ae72a34a80 Updated the SD librarie because it was updated in the sdk. 2021-12-19 13:10:16 +01:00
anschrammh
5c42dfce39 Changed the SPI speed setting which was of type SPISettings to the type uint32_t. This is due to changes in the ESP8266 core sdk version. The app is now working with version 3.0.2 of this sdk. 2021-12-19 13:09:12 +01:00
e108dd919a Merge branch 'master' of http://web-directories.cf/git/Th3maz1ng/ESP8266_swiss_army_board 2021-07-25 18:26:48 +02:00
ae90e07d59 Added conditional macro to include some headers only when needed 2021-07-25 18:26:08 +02:00
238cfae09d Added the resetIRQ method which resets the IR pin on the PCF 2021-07-25 15:39:34 +02:00
5813c6501d Corrected some mistakes in the example sketch and added missing methods in the keywords file for syntax highlighting 2021-06-13 19:33:34 +02:00
781354a02f Optimized the code and especially string literals to get a smaller RAM footprint 2021-01-29 18:17:00 +01:00
86074fbc67 Added debug printf to check malloc addresses 2021-01-27 17:07:02 +01:00
fbe3690d64 Removed useless pinMode statement 2020-12-30 13:05:24 +01:00
anschrammh
71cc0a6d8a Updated some settings 2020-12-29 11:11:19 +01:00
anschrammh
4c4832e475 Updated WEBServer (same changes as FTPServer) 2020-12-19 21:14:57 +01:00
anschrammh
4a6dde3bc3 Nothing Changed 2020-12-19 21:10:42 +01:00
anschrammh
3b03afb27e Updated the initialization of the WEBServer and the FTPServer to enable TCPKeepAlive, as well as defining teh root directories for both of them 2020-12-19 21:09:48 +01:00
anschrammh
07456cc48e Removed empty line 2020-12-19 21:05:47 +01:00
anschrammh
96e4cfa401 Replaced dependency from definition.h to utilities.h 2020-12-19 21:05:11 +01:00
anschrammh
8be389a08d Removed the dependency to definition.h as well as replacing SDCardManager class parameter to SDClass parameter 2020-12-19 21:04:11 +01:00
anschrammh
573e33ccf4 Added ViewLink structure taken from definition.h 2020-12-19 20:52:59 +01:00
anschrammh
08afbad156 Moved functions from definition to utilities 2020-12-19 20:51:34 +01:00
anschrammh
46b246c270 Added WEBServer connected client count to debug message 2020-12-19 20:49:59 +01:00
anschrammh
c108c33162 Removed the cpp part of the definition 2020-12-19 20:47:09 +01:00
anschrammh
0511435edc Updated the CFGFileParser.h to use the new utilities file 2020-12-19 20:43:45 +01:00
anschrammh
7fdb7b256e Created the utilities cpp file containing moved functions that were in the definition.h file 2020-12-19 20:40:08 +01:00
anschrammh
a67354cd84 Added a comment about why not using the strdup c function 2020-12-17 08:20:31 +01:00
anschrammh
2cf047f4ff Updated version history 2020-12-17 08:19:33 +01:00
anschrammh
e1ac857088 Called the TCPKeepAlive feature 2020-12-16 00:43:57 +01:00
anschrammh
19cf9ac678 Updated a changed method name 2020-12-16 00:42:12 +01:00
anschrammh
5627ebde48 Added the new enableTCPKeepAlive method which enable the feature for all new connected client after the call (this fixes a very annoying crash) and I corrected a bug with the maxClient setting 2020-12-16 00:40:54 +01:00
anschrammh
0c622c600b Grouped common class initialization directives in one private method and enabled new TCPKeepAlive setting for WEB and FTP servers 2020-12-15 23:50:41 +01:00
anschrammh
125a02c0e6 Minor modifications 2020-12-15 23:47:35 +01:00
anschrammh
3e193233b4 Changed the file date time adjustements 2020-12-15 00:38:46 +01:00
anschrammh
f57140ca91 Updated version history 2020-12-15 00:15:08 +01:00
anschrammh
89ee88530e Updated due to changes to the monthNumTo3LetterAbbreviation function's prototype 2020-12-15 00:14:38 +01:00
anschrammh
2b0698c7d0 Updated the monthNumTo3LetterAbbreviation function, it is no more needed to declare a buffer to store the 3 letters, instead a uint32_t is used 2020-12-15 00:11:48 +01:00
anschrammh
48991fe12e Removed old sdCard test 2020-12-13 22:00:18 +01:00
anschrammh
1dfe399d56 Added new test to check the TCPServer base class stability 2020-12-13 21:52:29 +01:00
anschrammh
ea0c82d8e4 First part of the WEBServer crash fix :) not finished yet 2020-12-13 21:25:05 +01:00
anschrammh
08576e441e Corrected a grammar mistake 2020-12-13 21:23:19 +01:00
anschrammh
bcc185bf5d Added function description 2020-12-13 21:16:29 +01:00
anschrammh
7d2ceedc9a Adjusted the file date and time format 2020-12-13 21:14:19 +01:00
anschrammh
8191aa640b Added a TCPServer stress test utility developed with the SFML 2020-12-13 20:47:35 +01:00
anschrammh
e5ace8bc16 Added a new SDcard library test program 2020-12-12 15:10:26 +01:00
anschrammh
4cf3b36f8d Added a modified version of the SDFS lib : implemented the setTimeCallback() method :) it is working now 2020-12-12 15:07:01 +01:00
anschrammh
9db06f5be6 Updated the test header as well as other small things 2020-12-12 11:15:07 +01:00
anschrammh
0ead1e5600 Changed port data type from unsigned int to uint16_t as well as removed a redundant port information 2020-12-12 11:11:35 +01:00
anschrammh
e66fd11e68 Added the EventHandler class that monitors button presses 2020-12-09 22:40:53 +01:00
anschrammh
281e07c30a Removed the old way to change the current view and added the EventHandler way to do it 2020-12-09 22:40:00 +01:00
anschrammh
e0bea5fae4 Reworked the way the rssi percentage is computed 2020-12-09 22:36:02 +01:00
anschrammh
58b8891d41 Changed max read buffer from 2500 to 2048 2020-12-08 23:25:42 +01:00