> For the complete documentation index, see [llms.txt](https://mrwheel-docs.gitbook.io/dsmrloggerapi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mrwheel-docs.gitbook.io/dsmrloggerapi/voorbereiding/esp8266-littlefs-data-upload-tool.md).

# ESP8266 LittleFS Data Upload Tool

### Installatie LittleFS Data Upload Tool <a href="#installatie-data-upload-tool" id="installatie-data-upload-tool"></a>

Eén van de mooie eigenschappen van de ESP8266 is dat er flash geheugen in zit. Flash geheugen is geheugen dat zijn inhoud ook zonder spanning behoud. Vergelijk het met een SD-kaart. Het flash geheugen is, afhankelijk van het bordje, 512kB tot 16MB(!) groot. Een deel van dit flash geheugen wordt gebruikt om jouw programma in op te slaan. Wat er over blijft kan als bestand systeem worden ingericht (het zgn. *LittleFS*).

Je kunt in je programma dit bestand systeem niet alleen gebruiken om (bijvoorbeeld meet-) gegevens maar ook om de inhoud van een web-pagina (`index.html`) of een configuratie-bestand in op te slaan.

Om het LittleFS voor dit soort bestanden te kunnen gebruiken moet je een ***`plug-in`*** in je Arduino Projecten map installeren.

De plug-in haal je [hier](https://github.com/earlephilhower/arduino-esp8266littlefs-plugin/releases) vandaan. Ga naar deze [github](https://github.com/earlephilhower/arduino-esp8266littlefs-plugin/releases) pagina en download het meest recente .zip bestand ..

![](/files/-MbpAGHC0SAuKEV2-I9y)

Download vervolgens het **`ESP8266LittleFS-x.y.z.zip`** bestand door er op te klikken.

![](/files/-MbpAbJ0jY4Hcp8FHchw)

En bewaar het bestand op een plek die voor jou handig is.

Ga nu naar je `Sketchbook Location` map en maak daarin een nieuwe map `tools` aan (als deze nog niet bestaat). Pak het zojuist ge-download-de zip bestand uit in deze `tools` map. Er wordt nu een aantal nieuwe mappen aangemaakt waar de plug-in wordt neergezet. Het pad ziet er ongeveer zo uit:

`<sketchbook location>/tools/ESP8266FS/tool/esp8266fs.jar`

![Tools\_Tree.png](https://mrwheel.github.io/DSMRloggerWS/img/Tools_Tree.png)

Start de Arduino IDE opnieuw op.

Op de menu-balk zie je nu onde&#x72;**`[Tools]`**&#x65;en nieuwe optie: **`ESP8266 LittleFS Data Upload`**.

![](/files/-MbpArElfJcx7AUPRg5g)

Als er onder de map van je Sketch óók een map **`data`** staat, dan kun je de bestanden die in deze **`data`-map** staan met het **`ESP8266 LittleFS Data Upload`** tool naar het bestand systeem van de ESP8266 flashen.

De bestands-tree van de DSMRloggerAPI firmware data-map ziet er zo uit: &#x20;

<div align="center"><img src="/files/-M2I40J082L8iEO4dFtm" alt=""></div>

Het `ESP8266 LittleFS Data Upload` tool zal alle bestanden die in de `data`-map zitten naar het bestand systeem van de aangesloten ESP8266 uploaden.

Ga naar: \[**`tools`**] -> \[**`ESP8266 LittleFS Data Upload`**]

Randvoorwaarde is natuurlijk dat het bestand systeem groot genoeg is! In de selectie van je board moet je, behalve het juiste type board ook aangeven hoeveel ruimte van je Flash geheugen je wilt gebruiken voor het bestand-systeem (vóórdat je je programma naar de ESP8266 upload!).

![](/files/-M2I50xDV_CCG_a4DhZc)

Normaliter zou je dit zo groot mogelijk willen maken, maar als je “Over The Air” programma’s op je ESP8266 wilt zetten (dus zonder fysieke verbinding maar via WiFi) dan moet je er rekening mee houden dat je twee maal de grootte van je programma nodig hebt om dit te kunnen doen. Wat er overblijft kun je als bestand-systeem gebruiken.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://mrwheel-docs.gitbook.io/dsmrloggerapi/voorbereiding/esp8266-littlefs-data-upload-tool.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
