Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
siara-cc committed Dec 31, 2018
2 parents 2bc26d8 + c3388ef commit 605d041
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,29 @@ Installation

Install ESP-IDF sdk using instructions from https://docs.espressif.com/projects/esp-idf/en/latest/get-started/.

Unzip this project under esp-idf/components folder. Or if you are cloning the repository at https://github.com/espressif/esp-idf, add this repository as submodule using `git submodule add https://github.com/siara-cc/esp32-idf-sqlite3 components/esp32-idf-sqlite3`.
Unzip this project under esp-idf/components folder. Or if you are cloning the repository at https://github.com/espressif/esp-idf, add this repository as submodule using:

`git submodule add https://github.com/siara-cc/esp32-idf-sqlite3 components/esp32-idf-sqlite3`.

Using examples
--------------

1. Download [esp-idf-v3.1.1.zip](https://github.com/espressif/esp-idf/releases/download/v3.1.1/esp-idf-v3.1.1.zip) that includes submodules and unzip
2. `cd esp-idf-v3.1.1`, set path to `xtensa-esp32-elf/bin` and set `IDF_PATH`
3. `git submodule add https://github.com/siara-cc/esp32-idf-sqlite3 components/esp32-idf-sqlite3`
4. `git submodule add https://github.com/siara-cc/esp32-idf-sqlite3-examples examples/esp32-idf-sqlite3-examples`
5. `cd examples/esp32-idf-sqlite3-examples/spiffs`
6. `make flash`
7. To check output, use `miniterm.py <device> 115200` and reset board

Information specific to ESP-IDF
-------------------------------

To check out how this library works, please try the examples (`git submodule add https://github.com/siara-cc/esp32-idf-sqlite3-examples examples/esp32-idf-sqlite3-examples`). For instance, to check how Sqlite3 databases can be created on SPIFFS, naviate to the folder `examples/esp32-idf-sqlite3-examples/spiffs` and invoke `make flash`.
To check out how this library works, please try the examples using:

`git submodule add https://github.com/siara-cc/esp32-idf-sqlite3-examples examples/esp32-idf-sqlite3-examples`

For instance, to check how Sqlite3 databases can be created on SPIFFS, naviate to the folder `examples/esp32-idf-sqlite3-examples/spiffs` and invoke `make flash`.

Many configurations specific to SQLite library have been set in the `sdkconfig` file, such as:

Expand Down

0 comments on commit 605d041

Please sign in to comment.