Search found 9 matches

by greggm
Wed Mar 20, 2019 12:27 am
Forum: General Discussion
Topic: Spiffs upload with JavaScript?
Replies: 0
Views: 2645

Spiffs upload with JavaScript?

I have a standalone JavaScript (electron) application and would like to upload a file directly to my esp32 using JavaScript. In a sense like the following solution, but not in Java, but in JavaScript: https://github.com/me-no-dev/arduino-esp32fs-plugin/blob/master/src/ESP32FS.java Did anyone try thi...
by greggm
Thu Sep 28, 2017 9:49 pm
Forum: ESP32 Arduino
Topic: WifiClient setTimeout() not working
Replies: 0
Views: 9695

WifiClient setTimeout() not working

I have setup a quite simple and standard wifi client waiting for data, and wanted to test how setTimeout() would work, but i dont get this working. This is the esp32 arduino code: ... WiFiServer server(port); void serverStartup(){ server.begin(); //server.setTimeout(5); delay(1000); Serial.println("...
by greggm
Mon May 22, 2017 10:13 pm
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39434

Re: Best way to store large objects on flash?

one more question:
- what do you mean by "difficult to update the file reliably" ? What challenges would i face using mmap here?

Gregg
by greggm
Mon May 22, 2017 10:07 pm
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39434

Re: Best way to store large objects on flash?

Thanks for the very usefull comparison. Partition api seems to be the best fit so far since it seems to be low memory cost and should cover my case with saving a few large objects (images) of same size, especially using mmap seems compelling. 2 more questions, though: - are there any compelling exam...
by greggm
Sun May 21, 2017 5:33 pm
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39434

Re: Best way to store large objects on flash?

Thanks for the many replies - Will go down one way - either using the partition API or the file system solution. Are there any reason to prefer one over the other? WRT the error i was reporting before: I have tried it out without ESP_IDF using the Arduino variant on platformio. I am now setting up E...
by greggm
Sun May 21, 2017 1:54 pm
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39434

Re: Best way to store large objects on flash?

That is an interesting option, but in my case the file is not immutable.
I will receive the data via wifi and want to write it down to flash.

What would be a suitable option here?
by greggm
Sun May 21, 2017 1:20 pm
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39434

Re: Best way to store large objects on flash?

I have tried out the wear-levelling example at https://github.com/espressif/esp-idf/tree/master/examples/storage/wear_levelling but i get: E (321) vfs_fat_spiflash: Failed to find FATFS partition (type='data', subtype='fat', partition_label='storage'). Check the partition table. E (322) example: Fai...
by greggm
Sun May 21, 2017 11:31 am
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39434

Re: Best way to store large objects on flash?

Thanks a lot for your fast reply and your pointers - from what you are saying it seems that also other flash access library (like the partition_table api) will also hit the same boundary as NVS. Right? So it seems that SPIFFS might be the only well-documented way of handling with larger files on fla...
by greggm
Sun May 21, 2017 10:54 am
Forum: ESP-IDF
Topic: Best way to store large objects on flash?
Replies: 23
Views: 39434

Best way to store large objects on flash?

Hi, I am looking for the best way to store a larger image object (around 10k) on the internal flash. I tried to store it as binary using NVS, since NVS is the best described way in the documentation (including examples). But it seems i am hitting a 4k boundary here (along with some guru meditation w...