tools/mesh-cfgclient: Disallow model commands w/o composition
authorInga Stotland <inga.stotland@intel.com>
Thu, 23 Sep 2021 03:25:52 +0000 (20:25 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 11 Mar 2022 13:38:37 +0000 (19:08 +0530)
commitf3d2373d989d13296f079fafa060b2522c415afe
tree73af244a1123f7c1fa312f366fd6a34f942cbb12
parent817a070b15103b9974b94d233110ba44fe2528a9
tools/mesh-cfgclient: Disallow model commands w/o composition

If remote node's composition hasn't been acquired, disallow commands
that change model state (that is, bindings, subscriptions, publications).
Prompt to run "get-composition" command first.

Signed-off-by: Anuj Jain <anuj01.jain@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
tools/mesh/cfgcli.c
tools/mesh/mesh-db.c
tools/mesh/remote.c
tools/mesh/remote.h