Andrei Litvin 3df57b778a Start switching platforms to C++17 (linux, mac) (#28170) před 2 roky
..
third_party bd88148dee Add key value store for linux (#4530) před 5 roky
.gn bd88148dee Add key value store for linux (#4530) před 5 roky
BUILD.gn 5c8ae45f7a Add a default group to example apps build (#24852) před 3 roky
README.md e7347ea115 Add Sphinx documentation framework (#24185) před 3 roky
args.gni 3df57b778a Start switching platforms to C++17 (linux, mac) (#28170) před 2 roky
build bd88148dee Add key value store for linux (#4530) před 5 roky
build_overrides bd88148dee Add key value store for linux (#4530) před 5 roky
main.cpp 1145baca63 Misc clang-tidy auto fixes (#23445) před 3 roky

README.md

CHIP Linux Persistent Storage Example

An example testing and demonstrating the key value storage API.



Introduction

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.

Linux

The Linux platform KVS is fully implemented, the KVS is enabled and configured by providing a file during the init call.

Building

  • 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
    

Running

  • Run Linux Example

        $ cd ~/connectedhomeip/examples/persistent-storage/linux
        $ sudo out/debug/persistent_storage