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

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