From 4e16431a51152ea78b1af0674016e0040cf65952 Mon Sep 17 00:00:00 2001 From: Inga Stotland Date: Wed, 22 Sep 2021 20:25:58 -0700 Subject: [PATCH] tools/mesh-cfgclient: Add group parent address for DB compliance --- tools/mesh/mesh-db.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/mesh/mesh-db.c b/tools/mesh/mesh-db.c index a253aa333..3381e2934 100644 --- a/tools/mesh/mesh-db.c +++ b/tools/mesh/mesh-db.c @@ -1590,6 +1590,10 @@ bool mesh_db_add_group(struct mesh_group *grp) goto fail; } + /* Initialize parent group to unassigned address for now*/ + if (!write_uint16_hex(jgroup, "parentAddress", UNASSIGNED_ADDRESS)) + goto fail; + json_object_array_add(jgroups, jgroup); return save_config(); -- 2.47.3