tools/mesh-cfgclient: Add group parent address for DB compliance

This commit is contained in:
Inga Stotland 2021-09-22 20:25:58 -07:00 committed by Brian Gix
parent 55f91fd373
commit 4e16431a51

View File

@ -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();