jumjum123 / EspruinoExtensions

Extensions for Espruino Firmware
2 stars 1 forks source link

SD card [require("fs")] extension? #1

Open mano1979 opened 8 years ago

mano1979 commented 8 years ago

I am searching all over the internet for SD card support on the esp8266 running espruino v1.86. Someone on the forum told me to check out your firmware builder, but it does not contain the "fs" extension/module. It is also missing from the Espruino.com/modules page.

Can you please help me??

jumjum123 commented 8 years ago

Hello Mano,

well, I have in mind, SD card support was not running on ESP8266. There was a short discussion between tve, Neil Kolban and Gordon about that some months ago. As far as I know, nobody asked for that, so priority decreased.

One of my plans is, to add an option to set additional flags like USE_FILE to my firmware builder. Right now I'm working on extensions for Espruino in C, next is 2 weeks vacation. May be somewhere in 10.2016 ???

BTW, ESP8266 has some free memory in flash, some KB. If this would be sufficient, I have built an low level file reading for that.

regards from Krefeld(Germany, about 24 degrees Celsius) Jürgen

On Mon, Sep 5, 2016 at 11:17 PM, Mano Biletsky notifications@github.com wrote:

I am searching all over the internet for SD card support on the esp8266 running espruino v1.86. Someone on the forum told me to check out your firmware builder, but it does not contain the "fs" extension/module. It is also missing from the Espruino.com/modules page.

Can you please help me??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jumjum123/EspruinoExtensions/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-GnjWYmbMX_DVkI43GmCt86Eheu48Fks5qnIb6gaJpZM4J1Uhi .

mano1979 commented 8 years ago

The eeprom of flash is not enough. i want to serve files from the sd card. For example all text-based files such as all kinds of code, or text files/documents and some images.

Anyway, i'm glad you're looking into it.

regards from Amsterdam, The Netherlands, 22 deg. Celsius

jumjum123 commented 8 years ago

Hello Mano,

I tried to add file support for ESP8266 with a simple USE_FILESYSTEM=1 It turned out that one statement gives an error for ESP8266. It's a jsWarn including "short form of if then else". This could easily be fixed, but at the end it needs to go through Gordon. Anyway, I have no testing environment for SD-cards with ESP8266 right now.

May be somebody at https://gitter.im/espruino/Espruino has more information or experience. I would be careful, using ESP8266 as a full blown Webserver. This is a 2$ chip with small memory. As soon as you get some requests in parallel, which happens during a html-page with images, stylesheets, javascript, etc, it will run out of memory.

regards Jürgen

On Tue, Sep 6, 2016 at 10:00 PM, Mano Biletsky notifications@github.com wrote:

The eeprom of flash is not enough. i want to serve files from the sd card. For example all text-based files such as all kinds of code, or text files/documents and some images.

Anyway, i'm glad you're looking into it.

regards from Amsterdam, The Netherlands, 22 deg. Celsius

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jumjum123/EspruinoExtensions/issues/1#issuecomment-245071773, or mute the thread https://github.com/notifications/unsubscribe-auth/AB-GnsclBwZvWzrunziMLPnHtRtbHBBiks5qncZygaJpZM4J1Uhi .