WordClockESP/lib/framework
rjwats e771ab134a
Settings placeholder substitution (#164)
* Use text formatting for default factory values to produce dynamic names.
Header files contains duplicates of factory values defined in factory_settings.ini Removed them to simplify the code.

* Use text formatting for default factory values to produce dynamic names.
Header files contains duplicates of factory values defined in factory_settings.ini Removed them to simplify the code.

* Configured the WiFi host name to contain the device id by default

* Removed possibility to use placeholders for FACTORY_WIFI_SSID factory setting.

* Update README.md

Updated documentation

* Use text formatting for default factory values to produce dynamic names.
Header files contains duplicates of factory values defined in factory_settings.ini Removed them to simplify the code.

* Configured the WiFi host name to contain the device id by default

* Removed possibility to use placeholders for FACTORY_WIFI_SSID factory setting.

* Added a space to the end of the file to comply project code style

* fix typos
clang formatting
use 2 spaces in ini files
use ${platform}-${chip_id} for hostname
put chip id in brackets in AP SSID

* restore (and update) factory setting ifndefs

- this is so src can be built without an exaustive set build-time defines
- standardize ordering of defines: factory settings, paths, config

* format and modify comment

* escape spaces in pio defines
experiment with removing $'s from our format strings (they are being substituted with empty values by pio)

* fix formatting in readme
rename FactoryValue to SettingValue, put in own header
give example of direct usage of FactorySetting::format in README.md

* auto format

* use hash to delimit placeholders

* fix factory_settings.ini

* remove flash string helpers

* format ini file

* use MAC address instead of chip id for properly unique identifier

* use lower case hex encoding for unique id
use chip id and unique id for more secure secret

* fix comment

* Use random values for JWT secret
Arduino uses the ESP random number generator for "true random" numbers on both esp32 and esp8266
This makes a better JWT secret and may be useful for other factory defaults too
In addition a modification has been made to force the FSPersistance to save the file if applying defaults

* Don't use spaces in default AP SSID

* restore helpful comment in factory_settings.ini
fix default defines

Co-authored-by: kasedy <kasedy@gmail.com>
2021-01-03 17:00:36 +00:00
..
APSettingsService.cpp Add access point IP address configuration in UI 2020-07-07 22:22:38 +01:00
APSettingsService.h Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
APStatus.cpp Access point fixes (#137) 2020-05-30 09:47:24 +01:00
APStatus.h Access point fixes (#137) 2020-05-30 09:47:24 +01:00
ArduinoJsonJWT.cpp fix broken imports under ESP32 2019-12-24 11:19:19 +00:00
ArduinoJsonJWT.h fix broken imports under ESP32 2019-12-24 11:19:19 +00:00
AuthenticationService.cpp Allow features to be disabled at build time (#143) 2020-06-09 21:57:44 +01:00
AuthenticationService.h Allow features to be disabled at build time (#143) 2020-06-09 21:57:44 +01:00
ESP8266React.cpp Fix issue when compiling with PROGMEM_WWW flag omitted (#186) 2020-07-28 08:29:58 +01:00
ESP8266React.h Migrate to LittleFS under ESP8266 2020-07-19 19:32:08 +01:00
ESPFS.h Migrate to LittleFS under ESP8266 2020-07-19 19:32:08 +01:00
FactoryResetService.cpp Migrate to LittleFS under ESP8266 2020-07-19 19:32:08 +01:00
FactoryResetService.h OTA Upload Feature (#162) 2020-06-29 00:25:58 +01:00
Features.h OTA Upload Feature (#162) 2020-06-29 00:25:58 +01:00
FeaturesService.cpp OTA Upload Feature (#162) 2020-06-29 00:25:58 +01:00
FeaturesService.h Allow features to be disabled at build time (#143) 2020-06-09 21:57:44 +01:00
FSPersistence.h Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
HttpEndpoint.h Apply updates alternative (#135) 2020-05-29 20:18:43 +01:00
JsonUtils.h Add access point IP address configuration in UI 2020-07-07 22:22:38 +01:00
MqttPubSub.h Apply updates alternative (#135) 2020-05-29 20:18:43 +01:00
MqttSettingsService.cpp Apply updates alternative (#135) 2020-05-29 20:18:43 +01:00
MqttSettingsService.h Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
MqttStatus.cpp Rework backend add MQTT and WebSocket support 2020-05-14 23:23:45 +01:00
MqttStatus.h Rework backend add MQTT and WebSocket support 2020-05-14 23:23:45 +01:00
NTPSettingsService.cpp Add admin security predicate to time endpoint (#154) 2020-06-17 09:20:33 +01:00
NTPSettingsService.h Allow time & date to be configured manually when NTP is inactive (#153) 2020-06-16 22:24:15 +01:00
NTPStatus.cpp NTP Timezone & Enable/Disable Setting (#80) 2020-01-20 11:14:46 +00:00
NTPStatus.h NTP Timezone & Enable/Disable Setting (#80) 2020-01-20 11:14:46 +00:00
OTASettingsService.cpp Apply updates alternative (#135) 2020-05-29 20:18:43 +01:00
OTASettingsService.h Apply updates alternative (#135) 2020-05-29 20:18:43 +01:00
RestartService.cpp OTA Upload Feature (#162) 2020-06-29 00:25:58 +01:00
RestartService.h OTA Upload Feature (#162) 2020-06-29 00:25:58 +01:00
SecurityManager.h Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
SecuritySettingsService.cpp Allow features to be disabled at build time (#143) 2020-06-09 21:57:44 +01:00
SecuritySettingsService.h Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
SettingValue.cpp Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
SettingValue.h Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
StatefulService.cpp Fixed currentUpdatedHandlerId variable appearing multiple times in several build units. (#120) 2020-05-21 20:55:22 +01:00
StatefulService.h Allow features to be disabled at build time (#143) 2020-06-09 21:57:44 +01:00
SystemStatus.cpp Migrate to LittleFS under ESP8266 2020-07-19 19:32:08 +01:00
SystemStatus.h Migrate to LittleFS under ESP8266 2020-07-19 19:32:08 +01:00
UploadFirmwareService.cpp OTA Upload Feature (#162) 2020-06-29 00:25:58 +01:00
UploadFirmwareService.h OTA Upload Feature (#162) 2020-06-29 00:25:58 +01:00
WebSocketTxRx.h Fix user form 2020-11-21 23:40:31 +00:00
WiFiScanner.cpp Allow features to be disabled at build time (#143) 2020-06-09 21:57:44 +01:00
WiFiScanner.h NTP Timezone & Enable/Disable Setting (#80) 2020-01-20 11:14:46 +00:00
WiFiSettingsService.cpp Apply updates alternative (#135) 2020-05-29 20:18:43 +01:00
WiFiSettingsService.h Settings placeholder substitution (#164) 2021-01-03 17:00:36 +00:00
WiFiStatus.cpp Use references & flash strings where approperate (#110) 2020-05-21 08:42:21 +01:00
WiFiStatus.h fix broken imports under ESP32 2019-12-24 11:19:19 +00:00