Mesh: Fix bug in fetching node vendor info 29/241129/1 accepted/tizen/unified/20200819.035932 submit/tizen/20200817.231237
authorAnupam Roy <anupam.r@samsung.com>
Mon, 17 Aug 2020 17:29:21 +0000 (22:59 +0530)
committerAnupam Roy <anupam.r@samsung.com>
Mon, 17 Aug 2020 17:29:21 +0000 (22:59 +0530)
commit17ceb7ad6ce42f14936e79b71bb3e03f0962098f
treeea26b03455a5378f2f597375b618bcb578982688
parentef47a144e7dc56b221304a379e5da94952b35fed
Mesh: Fix bug in fetching node vendor info

This patch handles following:
- Use Node's unicast address to search node in CDB.
Network UUID was wrongly used to search node in CDB,
as only local node's UUID will match with Network UUID,
rest of the nodes(provisioned) can be identified by
only their unique device UUID's. Therefore, unicast
address is the unique identifier of a node within
a network.

- NULL check was missing for node json entry before
returning not found result.

- Added few DEBUG prints.

Change-Id: I5374b21768355197e696b1ad5d12ac5d1bf143aa
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
bt-service/services/include/bt-service-mesh-cdb.h
bt-service/services/mesh/bt-service-mesh-cdb.c
bt-service/services/mesh/bt-service-mesh-config-client.c
bt-service/services/mesh/bt-service-mesh-network.c