tools/mesh-cfgclient: Export configuration database
authorInga Stotland <inga.stotland@intel.com>
Thu, 23 Sep 2021 03:26:03 +0000 (20:26 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
commitdca6546b916c07884f894c8244baf60a98de2d96
tree62d563cb99096395993ed1a2af5f1d8dc83bb4e1
parent6adf66d431bb820cb29b1c702cb2acf52fdf6ee8
tools/mesh-cfgclient: Export configuration database

This adds main menu command "export-db".
When the command is invoked, JSON configuration object is
cloned and trimmed of extraneous properties.
Information about netkeys, appkeys and device keys are obtained
from bluetooth-meshd by calling ExportKeys() method.
The obtained key values are recorded in the export JSON object.

Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/mesh-cfgclient.c
tools/mesh/mesh-db.c
tools/mesh/mesh-db.h