Commit Graph

74 Commits

Author SHA1 Message Date
rjwats
c16f7693fd
Migrate to LittleFS under ESP8266
Make ESP8266 use LittleFS instead of deprecated SPIFFS
Make framework use the correct filesystem automatically and handle the call the FS.begin()
Change default MQTT keepalive to 60 seconds
Fix lodash security issue
2020-07-19 19:32:08 +01:00
rjwats
f2b53a6d53
Consistency fixes (#167)
Minor consistency fixes from @proddy's comments
2020-07-07 00:13:38 +01:00
rjwats
c1fdb9b485
Resolve issue causing demo project to crash on esp8266 (#142)
Exception 3, Exception 9 and Exception 28 are thrown sporadically if printing to serial during WebSocket RX
Believed to be due to serial buffer causing RX to block, investigating as part of #123
2020-05-31 19:40:29 +01:00
rjwats
0d39c5ca00
Apply updates alternative (#135)
* Rename "serialize" and "deserialize" functions to "read" and "update" to reflect API in StatefulService
* Move new definitions to StatefulService.h so it is obvious it is not general purpose
* Update README
2020-05-29 20:18:43 +01:00
rjwats
0e2124062f
Use references & flash strings where approperate (#110)
* pass originId as const reference
* store strings for serial logging in flash
* Use string references where approperate.
2020-05-21 08:42:21 +01:00
rjwats
a59f32c420
Factory reset feature (#114)
Implemented factory-reset feature
Extract factory settings into separate ini file
Hide reset/factory reset from guest user

Co-authored-by: kasedy <kasedy@gmail.com>
2020-05-20 00:32:49 +01:00
rjwats
a1f4e57a21
Rework backend add MQTT and WebSocket support
* Update back end to add MQTT and WebSocket support
* Update demo project to demonstrate MQTT and WebSockets
* Update documentation to describe newly added and modified functionallity
* Introduce separate MQTT pub/sub, HTTP get/post and WebSocket rx/tx classes
* Significant reanaming - more accurate class names
* Use PROGMEM_WWW as default
* Update README documenting PROGMEM_WWW as default
* Update README with API changes
2020-05-14 23:23:45 +01:00
rjwats
39a86b0411
External config
Allow config to be accessed from outside the framework core code.
2020-02-01 08:44:26 +00:00
rjwats
bcfeef8004
Interface data storage in PROGMEM (#71)
Adds a webpack plugin to package interface as PROGMEM into a header file in the framework.
Adds a build flag to optionally enable serving from PROGMEM or SPIFFS as required
Adds documentation changes to describe changes
2019-12-29 17:54:12 +00:00
Rick Watson
f4ae632956 reformat with .clang-format based on google's spec with some minor changes 2019-12-03 23:16:06 +00:00
Rick Watson
d0fb2d982a update readme with changes to the demo code 2019-09-30 21:38:44 +01:00
Rick Watson
41f7579bd5 Resolve issue with AP.
Fix newly introduced null pointer in AuthenticationService.
2019-09-30 21:28:24 +01:00
Rick Watson
f77428e4dc move initialization code to constructors as a simplfication 2019-09-28 21:29:46 +01:00
Rick Watson
15ae0bb248 WIP - some documentation 2019-08-10 12:35:26 +01:00
Rick Watson
df06e58fb0 add demo project implementation 2019-08-09 15:53:39 +01:00
Rick Watson
f88520db44 experimenting with some refactoring 2019-07-14 22:13:26 +01:00
Rick Watson
bbcdf3defb fix minor build issue under esp8266 2019-06-25 23:31:58 +01:00
Rick Watson
382299a828 WiFi driver must be managed by arduino, use arduino to init the driver for esp32 core. 2019-06-07 20:15:35 +01:00
Rick Watson
cf2a20fbd4 Fix crash on startup when not configured - ESP32 2019-06-07 20:08:46 +01:00
Rick Watson
142235c355 Fix issue with ota service not restarting properly - mdns not being shut down without calling end(). 2019-06-07 19:47:59 +01:00
Rick Watson
4089b32941 fix issue, using wrong even in esp32 2019-06-05 23:56:56 +01:00
Rick Watson
2eb34e83f8 Access Point only comes back up if WiFi is properly disconnected on failures. 2019-06-05 00:05:16 +01:00
Rick Watson
e7248c4774 leave WiFi disconnected by default
implement controlled retry - fixed at 60 seconds
2019-06-04 21:13:55 +01:00
Rick Watson
94656de3c0 fix compiler warning about integer comparison 2019-06-04 20:05:43 +01:00
Rick Watson
3157b7d3ef minor tweeks from code review 2019-06-03 21:05:02 +01:00
Rick Watson
bfa94b79d1 resolve use of VLA in JWT encoder function 2019-06-02 23:31:00 +01:00
Rick Watson
9c680e8826 Resolve some typos
Use nullptr over NULL
Fix confusing regexp
Fix issue with non-compliant JWT encoding
2019-06-02 23:15:56 +01:00
Rick Watson
0708a54780 secure remaining endpoints to authenticated users 2019-05-31 19:58:33 +01:00
Rick Watson
73433586b6 add security to all admin endpoints 2019-05-29 23:48:16 +01:00
Rick Watson
71e5830d6c rename endpoint 2019-05-27 21:21:05 +01:00
Rick Watson
b11c508d77 introduce basic system status page 2019-05-27 00:04:29 +01:00
Rick Watson
6e5b35978a add security form, begin work on routing 2019-05-26 19:09:34 +01:00
Rick Watson
4fdc3eee66 fix encoding where signature contains a zero 2019-05-25 17:41:27 +01:00
Rick Watson
6935b63706 remove roles, as a simplification 2019-05-25 09:45:49 +01:00
Rick Watson
0c630f0f93 Upgrade to material ui 4
Add user management and roles - TBA
Menu Label Renames - TBA
2019-05-24 12:19:27 +01:00
Rick Watson
396d0333b6 More specific access control headers to support cross origin Authorization
Pretty sign in page
Verify existing JWT on application mount
2019-05-19 17:51:57 +01:00
Rick Watson
04e852f7d9 add authentication service 2019-05-18 19:35:27 +01:00
Rick Watson
7817010533 WIP - more experimenting with the security manager 2019-05-16 00:19:41 +01:00
Rick Watson
e63a8c4b75 use SDK provided encoder, rather than pulling in library 2019-05-11 15:11:11 +01:00
Rick Watson
a4220d631d Remove un-necessarry HMAC implementation, use SDK provided implementation 2019-05-06 22:40:24 +01:00
Rick Watson
079f134aa9 resolve issue with test endpoint 2019-05-06 21:46:28 +01:00
Rick Watson
6700610d35 messing around with JWT implementation 2019-05-06 15:50:19 +01:00
Rick Watson
41ace49d5c add JWT encoding 2019-05-03 00:31:20 +01:00
Rick Watson
eca14cf81c playing with some ideas for security management 2019-04-30 23:49:28 +01:00
Rick Watson
a05129be38 Merge branch 'master' into ft_user_security 2019-04-30 00:30:54 +01:00
Rick Watson
416e736ea9 Start work on security manager 2019-04-30 00:30:43 +01:00
Rick Watson
a98f1d4504 Remove redundant servicePath variable from SettingsPersistence 2019-04-30 00:30:09 +01:00
Rick Watson
e8de21aaf4 add mac address to wifi status page 2019-04-29 22:15:07 +01:00
Rick Watson
59d2646823 Minor formatting fixes 2019-04-28 08:32:48 +01:00
pcniatic
2131d86224 [ESP8266/ESP32] Problem setting hostname while on dynamic ip. (#17)
20 - Device does not change from static IP mode correctly
21 - DHCP hostname is not correctly configured (ESP32 & esp8266)
2019-04-28 08:19:33 +01:00