An example testing and demonstrating the key value storage API.
This example serves to both test the key value storage implementation and API as it is brought-up on different platforms, as well as provide an example for how to use the API.
In the future this example can be moved into a unit test when available on all platforms.
The Linux platform KVS is fully implemented, the KVS is enabled and configured by providing a file during the init call.
Install tool chain
$ sudo apt-get install git gcc g++ python pkg-config libssl-dev libdbus-1-dev libglib2.0-dev ninja-build python3-venv python3-dev unzip
Build the example application:
$ cd ~/connectedhomeip/examples/persistent-storage/linux $ git submodule update --init $ source third_party/connectedhomeip/scripts/activate.sh $ gn gen out/debug $ ninja -C out/debug
Run Linux Example
$ cd ~/connectedhomeip/examples/persistent-storage/linux $ sudo out/debug/persistent_storage