Need help running file system library with images/css/js
Posted: Mon Jul 18, 2016 11:15 am
So I've been working with the Adafruit ESP8266 Huzzah for a little while now and I've been having trouble running a website with a file system library.
My issues are as follows:
- images/css/js files are always failing to load
- the ESP8266 crashes a lot (mostly when switching pages)
- refreshing the page takes forever
- my websocket connections are always closing randomly.
Issue example (images/css/js):
I was originally using the libraries used in the FSBrowser example:
- ESP8266WiFi.h
- ESP8266WebServer.h
- FS.h
However, my css/js would fail to load the larger those files got so now I am currently using a modified version of the SPIFFS library that is asynchronous: https://github.com/me-no-dev/ESPAsyncWebServer
And this is where I'm at right now. The largest image I currently have is 47 KB (and there are only four images currently), and I really would like to be able to get this running in a more stable fashion so I could really use some help here.
Source ino file: http://tinyurl.com/hlatp67
Header ino file: http://tinyurl.com/harb9fq
HTML/CSS/JS: http://tinyurl.com/jje6efs
My issues are as follows:
- images/css/js files are always failing to load
- the ESP8266 crashes a lot (mostly when switching pages)
- refreshing the page takes forever
- my websocket connections are always closing randomly.
Issue example (images/css/js):
I was originally using the libraries used in the FSBrowser example:
- ESP8266WiFi.h
- ESP8266WebServer.h
- FS.h
However, my css/js would fail to load the larger those files got so now I am currently using a modified version of the SPIFFS library that is asynchronous: https://github.com/me-no-dev/ESPAsyncWebServer
And this is where I'm at right now. The largest image I currently have is 47 KB (and there are only four images currently), and I really would like to be able to get this running in a more stable fashion so I could really use some help here.
Source ino file: http://tinyurl.com/hlatp67
Header ino file: http://tinyurl.com/harb9fq
HTML/CSS/JS: http://tinyurl.com/jje6efs