Comments (11)
The instructions for migrating to littleFS look very straightforward. I'll give it a go - and hopefully will have more success than my ArduinoJson 6 migration attempt! :-)
from sensesp.
By using
#1
you reference another issue.
Maybe not a big deal, but anyway...
Maybe a use a task list in the first post instead in future?
Ah yes... Fixed.
from sensesp.
SPIFFS deprecation is going to be interesting. I had a quick look at LittleFS and while it seems technologically superior, every file reserves a minimum of 4 KiB of "disk space". Since we in a typical configuration only have 64 KiB to begin with, it means there's only room for 16 files. At the moment we save the sensor/transform config filenames equal to their config paths, which in SPIFFS are single files but in LittleFS would be several (I assume one directory would be one file). So, it's possible we'd easily run out of disk space unless the config saving approach gets changed. Not a showstopper but something to keep in mind.
from sensesp.
@mairas - Would we change the config saving so that there would be only one file, which would be a single JSON file, with all the JSON representing the individual configuration items (each sensor and transform, the wifi credentials, hostname, etc.) being added together to make one big nested array, or an array of nested arrays?
from sensesp.
Looking at https://arduino-esp8266.readthedocs.io/en/latest/filesystem.html#filesystem, I wonder if we really do need to worry about using too much memory. Maybe with an ESP8266 with 1 meg, but we've set the minimum to be the 4 meg version, so if it doesn't work with the 1 meg version, I wouldn't feel bad about that. And with the 4 meg version, the minimum file system size is 1 meg. That's 256 files if each one is 4K.
from sensesp.
A single config file might be awkward to deal with. You'd need to store all of that in memory and parsing would be more complex. But you're right; I was calculating based on 64k filesystem size and in practice it's always larger than that. On ESP8266 our default is 1M and while the currently used min_spiffs partition layout on ESP32 provides only 180K for the filesystem, it would be quite simple to customize that.
from sensesp.
RE: HTTPClient::begin(String) - see https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPClient/examples/BasicHttpClient/BasicHttpClient.ino for an example of how to do it now.
from sensesp.
The first item in this Issue is addressed by PR #188 .
from sensesp.
The second item in this Issue is addressed by PR #191 .
from sensesp.
By using #1
you reference another issue.
Maybe not a big deal, but anyway...
Maybe a use a task list in the first post instead in future?
from sensesp.
While the ESP8266 has deprecated SPIFFS, ESP32 has not yet even written an interface for LittleFS. So at this point, it would have to be a case of using SPIFFS for ESP32 while switching ESP8266 to LittleFS. Doesn't seem like a good plan. I'll close this issue, and if/when ESP32 supports LittleFS, or when ESP8266 ceases support for SPIFFS, we'll deal with it then.
from sensesp.
Related Issues (20)
- temperature_sender.cpp in the examples calculates incorrectly HOT 2
- slack invite leads to empty page HOT 1
- Trying to connect to SignalK from SensESP HOT 1
- RepeatSensor interval not configurable HOT 2
- showLoader function restored to sensesp.js HOT 1
- Updated Threshold transform configurations not loaded correctly after restart.
- upload OTA "No response from the ESP" HOT 4
- DigitalInputChange class does not work when initialised with FALLING
- Provide LED flashing sequence to indicate network or factory settings reset.
- Could not find configuration for path BatteryATemperature HOT 1
- Issue with system LED
- RemoteDebug start level
- Reset reason info of ESP32 available in SensESP/Signal K HOT 3
- Fixed repeat times at system info sensors HOT 2
- Add WiFi.setMinSecurity(WIFI_AUTH_WEP) in client mode HOT 1
- ->set_sk_server() does not update
- mDNS stopped working
- Fails to connect to Wifi AP that uses WSP WAP authentication HOT 1
- Bug in constant_sensor.h (Release 2.7.3-alpha) HOT 1
- Bug with FloatSKListener() in Dev-3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sensesp.