Commit Graph

362 Commits

Author SHA1 Message Date
anschrammh
723132a082 Added a new api call to get the nearby access points 2020-01-20 08:14:49 +01:00
anschrammh
cd6af9f99f Renamed a method to run() for consistency 2020-01-20 08:12:38 +01:00
anschrammh
424a135151 Updated the ScreenManager class and added the previousDisplay methods allong with screen refresh rate 2020-01-20 08:10:18 +01:00
anschrammh
6dfee719a9 Renamed a few methods for consistency 2020-01-20 08:03:28 +01:00
anschrammh
d371eeb267 Added a run method which is including run methods from different services 2020-01-20 08:01:25 +01:00
anschrammh
488d442df3 Added the max retries option 2020-01-07 12:22:29 +01:00
anschrammh
e74cf22c71 Added the setString method to the string entity object 2020-01-07 12:20:10 +01:00
anschrammh
57a5f05e29 Updated the version history 2019-12-28 14:14:58 +01:00
anschrammh
5116ea41eb Removed old test tasks, added a new test task 2019-12-28 14:11:33 +01:00
anschrammh
2b32fd68ea Created a new task in order to test the HttpClient class 2019-12-28 14:10:50 +01:00
anschrammh
af25f55089 Updated getHTTPHeader function (increased mime type size) 2019-12-28 14:09:51 +01:00
anschrammh
d0349ea26e Renamed former HtmlClient to HttpClient and implemented the methods 2019-12-28 14:07:40 +01:00
anschrammh
ea60399ea3 Added new helper functions 2019-12-28 14:04:50 +01:00
anschrammh
2d73921bc7 Minor modifications 2019-12-27 10:50:32 +01:00
anschrammh
7b80f7a95c Minor changes to the Dictionary class 2019-12-27 10:48:47 +01:00
anschrammh
9148e61911 Created new HttpConstants class 2019-12-27 10:47:34 +01:00
anschrammh
2cca10ec5a Removed http specific enums, which are now part of the HttpConstants class 2019-12-27 10:47:02 +01:00
anschrammh
c29d4edbd7 Renamed HtmlClient to HttpClient 2019-12-27 10:45:52 +01:00
635273589f Started to define class methods 2019-12-25 21:07:53 +01:00
1eaa1c1361 Added a new state to the state machine for consistency 2019-12-25 21:07:11 +01:00
82db9489f7 Added a debug statement 2019-12-25 21:06:12 +01:00
fafbcc36cf Minor fix because of an issue introduced by the new esp8266 core release 2019-12-25 21:03:21 +01:00
anschrammh
d91f394416 Created new empty class which will be used to do Html queries 2019-12-21 14:59:48 +01:00
anschrammh
c235f7936e Corrected header guards 2019-12-21 14:58:55 +01:00
anschrammh
88b8b757b2 Registered the new api endpoint 2019-11-18 11:45:08 +01:00
anschrammh
ff3d999449 Updated the version history 2019-11-18 10:57:54 +01:00
anschrammh
6ac860861d Added an api endpoint to adjust CPU frequency and used the new injectApiHeader for testing purposes 2019-11-18 10:55:41 +01:00
anschrammh
1db65be493 Added the setCpuFreq() method to change the cpu clock at run time 2019-11-17 20:32:08 +01:00
anschrammh
e7cf2fa020 Added a handy way to retrieve the configuration of a config file without having to instantiate a parser - but I do not like it - might be removed in the future 2019-11-17 19:31:06 +01:00
anschrammh
ef2f986581 Updated the code, the save feature needs to be tested carefully before using it 2019-11-17 19:28:50 +01:00
anschrammh
e9625b909c Implemented the post data parser (only for application/x-www-form-urlencoded), replaced strcpy with memmove, put string that was in ram to flash + other optimizations 2019-11-17 19:25:36 +01:00
anschrammh
28ad4c0342 Added a new method in order to update the value of a parameter 2019-11-17 13:57:01 +01:00
anschrammh
efadce0b41 Added a new getUpTime() method which returns the board running time 2019-11-17 11:02:21 +01:00
anschrammh
cd46e089f1 Changed strcpy to memmove to handle memory overlaps 2019-11-17 10:59:59 +01:00
anschrammh
c19c15dd07 Added a new range attribut in order to handle the http bytes-range command (to be done) 2019-11-17 10:58:43 +01:00
anschrammh
4ee100d16b Minor changes 2019-11-17 10:50:49 +01:00
anschrammh
aa544d307e Corrected some code and improved logic 2019-11-17 10:47:10 +01:00
anschrammh
df1816ca44 Moved the connectivity defines where they belong to (ConnectivityManager.h) 2019-11-17 10:45:00 +01:00
anschrammh
33661ec97e Added the current board run time in the serial monitor 2019-11-17 10:43:47 +01:00
anschrammh
81dcd390e0 Updated flash string definition in order to save RAM (changed F() to PSTR()) 2019-11-17 09:42:53 +01:00
anschrammh
fc434c1292 Removed an old include that wasn't necessary anymore 2019-11-17 09:37:34 +01:00
anschrammh
66fdc24a3e Added new view 2019-10-31 21:51:23 +01:00
anschrammh
5a75603f6e Updated the version history 2019-10-31 21:50:55 +01:00
anschrammh
e699b89faf Added a new view to display rtc info and renamed a few old views for clarity 2019-10-31 21:47:43 +01:00
anschrammh
36f87a27a8 Added a method to get temperature of the module 2019-10-31 21:45:45 +01:00
anschrammh
34769ac251 Added new getTemperature method in order to read the internal temp of the DS3231 RTC chip 2019-10-31 21:44:21 +01:00
anschrammh
28103022cd Added checks to see if the client is logged in or not and other improvements in order to increase responsiveness 2019-10-31 21:39:04 +01:00
anschrammh
f7fc5abad5 Improved the FTPClient class by adding better verification to buffers 2019-10-31 21:26:02 +01:00
anschrammh
163c15ef68 Changes related to previous changes... 2019-10-20 18:17:00 +02:00
anschrammh
9660d38dac Added three new methods, one to enable or disable the screen, one to reload the config on the fly, and one to init the object 2019-10-20 18:16:27 +02:00
anschrammh
35596c1296 Added two new methods to be able to reload wifi connectivity config while the card is running 2019-10-20 18:13:29 +02:00
anschrammh
cd41b61197 Added and defined two new config files (one for the screen and one for the servers) 2019-10-20 18:08:57 +02:00
anschrammh
d06b1e49d9 Added new api endpoint to reload and apply screen config from sd card 2019-10-20 18:05:06 +02:00
anschrammh
882e97dfcd Small change 2019-10-19 15:37:14 +02:00
anschrammh
d615845a26 Removed old SD lib 2019-10-19 15:36:59 +02:00
anschrammh
7ed9eb6868 Updated Serial baud rate going from 115200 to 500000 and updating SDCardManager initialization 2019-10-19 15:36:32 +02:00
anschrammh
34ffc920a1 Improving FTPserver again and again, added the rename function, code refactoring, what is missing is verifying if the client is logged in before commands - will be added soon 2019-10-19 15:34:27 +02:00
anschrammh
49b16c1b17 Updated sdMount and sdUnmout calls to use the new SDCardManager methods 2019-10-19 15:31:32 +02:00
anschrammh
849150ac1f Changed underlaying SD card library allowing other file format than 8.3 2019-10-19 15:29:49 +02:00
anschrammh
6da0671121 Modified SDCardManager : added new methods and changed constructor 2019-10-19 15:27:51 +02:00
anschrammh
b272ab0f22 Changed sdcard library driver, now using the one for the esp8266 which is mush better, also note that the WEBServerManager will be removed in a near future 2019-10-18 01:06:59 +02:00
anschrammh
0c152a7dc5 Completely removed header files for the old config files 2019-10-18 01:05:36 +02:00
anschrammh
6be6c7256d Removed ScreenConfig, SDCardConfig and PinMapping. They are now replaced by a single object : BoardConfig 2019-10-17 21:38:28 +02:00
anschrammh
bd3d17c5c2 Minor updates 2019-10-16 19:27:43 +02:00
anschrammh
d41cebfee6 Removed useless file close statement 2019-10-16 19:21:53 +02:00
anschrammh
7d60a8d9d0 FTPServer implemented, small bugs to fix... 2019-10-16 19:19:57 +02:00
anschrammh
f0398b717b Added lastIndexOf helper function 2019-10-14 23:01:27 +02:00
anschrammh
ef0ab58add Minor bug correction 2019-10-14 22:59:31 +02:00
anschrammh
99e0f7d82c Added the FTPServer and improved functionalities (not done yet) 2019-10-14 22:58:15 +02:00
anschrammh
c777e23a52 Updated TCPServer and WEBServer core logic 2019-10-13 16:43:54 +02:00
anschrammh
1450a8c0e5 Continuing to implement the FTPServer 2019-10-13 16:42:34 +02:00
anschrammh
537298e7d7 Code optimization when a NULL char *str is passed as argument 2019-10-13 11:25:52 +02:00
anschrammh
bd23b4a3b2 FTPServer in progress 2019-10-13 11:23:59 +02:00
anschrammh
31eb8eb589 Implementing FTP server 2019-10-12 23:20:25 +02:00
anschrammh
a01a151943 Added new classes to develop the FTP server 2019-10-11 12:39:33 +02:00
anschrammh
1317644b3d Updated version history 2019-10-11 12:38:03 +02:00
anschrammh
f632ace6ed Updated the views data structure to display the wifi modes 2019-10-11 12:33:19 +02:00
anschrammh
18e47f22d1 Switched method parameters for the sdCard begin statement 2019-10-11 12:28:15 +02:00
anschrammh
e36fca5326 Displayed state of the AP and/or STA (is it enabled or not) 2019-10-11 12:23:07 +02:00
anschrammh
49a37a34f3 Removed useless include 2019-10-11 09:52:15 +02:00
anschrammh
a824610fb6 Added two new methods to know if the STA and/or AP are enabled or not 2019-10-11 09:36:39 +02:00
anschrammh
29ae07da64 Removed old WEBServerManager class (still present but not used anymore) in order to use the new one 2019-10-10 18:22:07 +02:00
anschrammh
dc21169fbd Solved a bug with tasks that are meant to not trigger right away 2019-10-10 18:20:51 +02:00
anschrammh
45b7a6245c The board is now using the new WEBServer class which can handle more than one client and is non blocking even with big files 2019-10-10 18:19:44 +02:00
anschrammh
63ead30ad0 Moved the HttpRequestData Structure from the WEBClient class to the WEBServer class 2019-10-10 18:16:33 +02:00
anschrammh
3bad569f21 Moved the HttpRequestData Structure from the WEBClient class to the WEBServer class 2019-10-10 18:15:59 +02:00
anschrammh
a95a387d30 Added the getPort() method 2019-10-10 18:13:54 +02:00
6ffe25ec3b Updated code to use the PowerManager class 2019-10-05 18:24:45 +02:00
730460bd99 Added dedicated class for power management 2019-10-05 18:24:08 +02:00
786821b36e Added new version number 2019-10-05 17:23:16 +02:00
3dce4fb00e Switched parameters for the sdcard begin statement 2019-10-05 17:22:55 +02:00
34a847a012 Updated constructor, switched cs pin and spi speed parameters for begin 2019-10-05 17:17:23 +02:00
500a441248 Merge branch 'master' of http://192.168.0.17/git/Th3maz1ng/ESP8266_swiss_army_board 2019-10-04 21:15:42 +02:00
anschrammh
6a035f09a1 Cleaning the connection process 2019-09-28 13:50:21 +02:00
4a98c5ebc6 Developped new multi client tcp server as well as web server 2019-09-13 21:15:53 +02:00
cc8e517920 Minor change to a comment 2019-09-13 21:14:52 +02:00
91f339648c Minor change to a comment 2019-09-13 21:14:09 +02:00
6c24020456 Correcting debug code which was crashing due to a change in the Dictionary class 2019-09-13 21:13:39 +02:00
563664931e Updated Dictionary code 2019-09-08 19:12:57 +02:00
812e891489 Marked destructor as virtual 2019-09-08 19:11:22 +02:00
anschrammh
30a0cc672c Updated software version number 2019-09-05 14:03:56 +02:00
anschrammh
28708ac96c Minor changes 2019-09-05 14:02:21 +02:00
anschrammh
634faad650 Minor changes 2019-09-01 22:52:21 +02:00
anschrammh
8d2df8530d Minor changes 2019-09-01 22:50:56 +02:00
anschrammh
c97db9f6a9 Fixed bug with the 'trigger once and delete' tasks 2019-09-01 22:50:26 +02:00
anschrammh
ae31aac4ee Minor change 2019-09-01 22:49:46 +02:00
anschrammh
c2c95bf339 Renamed method get to getAt and changed the get method logic 2019-09-01 22:48:01 +02:00
anschrammh
90ac468c8e Modified the main app 2019-09-01 21:36:43 +02:00
anschrammh
c79dca197a Updated the version history 2019-09-01 21:36:24 +02:00
anschrammh
6c06233dd6 Reworked the reset and restart api calls 2019-09-01 21:35:52 +02:00
anschrammh
9c030518c5 Moved the battery sensing logic in a task and added a task to reset/restart the module 2019-09-01 21:34:32 +02:00
anschrammh
b93a6f64e8 Corrected a big and nasty memory leak, renamed two methods and added the 'trigger once and delete' functionality 2019-09-01 21:33:24 +02:00
anschrammh
3642367826 Corrected syntax logic 2019-09-01 21:31:45 +02:00
anschrammh
ff7656f5e7 Updated the time/date display format (added leading zero) 2019-09-01 21:30:41 +02:00
anschrammh
0edadee37c Corrected a comment 2019-09-01 21:29:27 +02:00
anschrammh
4e8a898b26 Added a new function to format time with a leading zero 2019-09-01 21:28:30 +02:00
5cc7d1403a Added a debug text in serial 2019-08-24 20:47:55 +02:00
1f849e2336 Added the RX gpio pin as input with internal pull up since the signal it is sensing is in open drain config 2019-08-24 20:46:55 +02:00
anschrammh
9874791ace minor changes 2019-08-19 13:55:00 +02:00
anschrammh
970544025b Added the current soft version on the display 2019-08-19 13:54:39 +02:00
anschrammh
47eb7889d0 Added getSoftVersion method to get the current software version 2019-08-19 13:53:57 +02:00
anschrammh
6f74c10140 Added versions.h file to track software versions 2019-08-19 13:53:09 +02:00
anschrammh
8e832c79fc Updated lib folder 2019-05-08 23:08:15 +02:00
anschrammh
0c19650188 Added sketches to test the software 2019-05-08 23:07:13 +02:00
anschrammh
01303f97bf Added a generic List class 2019-05-08 23:06:13 +02:00
anschrammh
359160fa6d Minor changes 2019-05-08 23:05:31 +02:00
anschrammh
5e3f0dc139 Fixed potential memory leak 2019-05-08 23:05:10 +02:00
anschrammh
3f7c5f369b Fixed memory leak 2019-05-08 23:04:18 +02:00
anschrammh
27385ccab4 Changed baud rate from 9600 to 115200 2019-05-08 10:56:14 +02:00
anschrammh
6182ee5a59 Minor changes 2019-05-08 10:55:15 +02:00
Anatole SCHRAMM
57877050a0 Added three test tasks as well the runTaskScheduler() call 2019-05-02 17:27:44 +02:00
Anatole SCHRAMM
d5e1addbb6 Minor changes for test purposes | this class is going to be rewritten at some point 2019-05-02 17:25:16 +02:00
Anatole SCHRAMM
f0d6486ef0 Added an instance of the TaskSchedulerManager class 2019-05-02 17:24:11 +02:00
Anatole SCHRAMM
50af552499 Added the sleep and wakeUp methods 2019-05-02 17:23:23 +02:00
Anatole SCHRAMM
67174c1f7c Further implementation of the TaskSchedulerManager class 2019-05-02 17:22:40 +02:00
Anatole SCHRAMM
e013103fd1 Added the sleep and wakeUp methods for the ssd1306 oled driver 2019-05-02 17:21:41 +02:00
Anatole SCHRAMM
cfa7192f5f Added the togglePin method to the library 2019-05-02 17:20:52 +02:00
Anatole SCHRAMM
8ab1f45013 Added tasks function definition and implementation files 2019-05-02 17:20:18 +02:00
anschrammh
3b848dd1ac Minor change 2019-05-01 23:31:10 +02:00
anschrammh
111279603e Added RTC Flash memory third party library 2019-05-01 22:25:22 +02:00
2dabcfa334 Started to implement this class 2019-05-01 22:04:53 +02:00
0271d1607c Registered new view + other small things 2019-05-01 22:04:24 +02:00
f2a75745cc Minor change 2019-05-01 22:03:58 +02:00
8fb329e717 Modified the begin method so that it performs a real check on the RTC connection 2019-05-01 22:03:24 +02:00
42fb3f52bc Updated the IOInfo view (added port direction info : Input/Output), added a new error view 2019-05-01 22:02:11 +02:00
b2e9773b2b Moved defines to their respective files 2019-05-01 22:01:02 +02:00
9bd5329d99 Updated Dictionary class, added a new method 2019-05-01 21:59:53 +02:00
513007f2da Bug fixe with the getFilePathByHttpResource() method 2019-05-01 11:38:09 +02:00
Anatole SCHRAMM
4bf746db65 Minor changes 2019-04-30 13:38:58 +02:00
Anatole SCHRAMM
b9ac4ac950 Created the TaskSchedulerManager class (skeleton only, no implementation) 2019-04-30 13:37:47 +02:00