Skip to contentSkip to conversation

tools/meshctl: Fix default directory for JSON files

PATCH Superseded Inga Stotland 1 participant 1 message Aug 21, 2018 Bluetooth drivers

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tools/meshctl: Fix default directory for JSON files

This fixes the name of default directory that contains sample JSON files. README file is updated to describe the default location.

---
 tools/mesh/README | 19 ++++++++++++++++++-
 tools/meshctl.c   | 52 +++++++++++++++++++++++++++++++---------------------
 2 files changed, 49 insertions(+), 22 deletions(-)
tools/mesh/README +18 -1
index ea561efc8..bdb171f77 100644
@@ -1,5 +1,5 @@
 MeshCtl - BlueZ GATT based Bluetooth Mesh Provisioner
-******************************************
+*****************************************************
 
 Copyright (C) 2017  Intel Corporation. All rights reserved.
 
@@ -16,6 +16,23 @@ Configuration and options
 
 		Build meshctl and other Bluetooth Mesh based tools and utils
 
+Example configuration files
+===========================
+
+The MeshCtl tool requires two input configuration files in JSON format:
+	- local_node.json
+		Local mesh node configuration
+	- prov_db.json
+		Provisoner's database for all the configured nodes in the mesh
+
+The default directory for MeshCtl configuration files is
+/home/<username>/.config/mesh
+
+To use .json configuration files either copy them to the default directory
+or, to specify a custom storage directory, run meshctl tool as:
+
+	meshctl -c <config_dir_name>
+
 Information
 ===========
 
tools/meshctl.c +31 -21

115 lines not on this page · raw message

Signature · 1 line
2.14.4