Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save configurations parameters to SPIFFS #18

Open
chunglam2525 opened this issue Nov 17, 2017 · 1 comment
Open

Save configurations parameters to SPIFFS #18

chunglam2525 opened this issue Nov 17, 2017 · 1 comment
Assignees

Comments

@chunglam2525
Copy link
Collaborator

Save ESP32 memory by putting configuration parameter in ESP32 on-board flash chip
Parameters included:

  • HTML Element
  • Pin Number
  • Constant Sensor value
  • ???CSS/Favicon???

Benefits:

  • Create easy to read code (Long HTML element)
  • Save precious memory of ESP32
  • Configuration can be saved on-board (i.e. Remember Last Connected SSID)

Additionally, modern web browsers accept compressed files as a response, compressing the HTML text file (.gz) could create more space on SPIFFS.

@hamishcunningham
Copy link
Owner

Looks good, thanks. How might the library code that you have from Ex07 integrate with storing HTML elements on file? I think perhaps it makes sense for stuff like CSS and favicons, but not so much for page templates? Definitely worth looking into though, and collaborating with #8 and others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants