tools/mesh-cfgclient: Prevent storing duplicate models
authorInga Stotland <inga.stotland@gmail.com>
Thu, 16 Mar 2023 21:33:11 +0000 (14:33 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000 (16:11 +0530)
commitec94b30bee3b8f9cfeabe821c8a1beff65f083a2
treebab83f89554112bd114c0189c30c741dc7cab07c
parent9396e8d535e1ba651a861e097b73496ea41d7189
tools/mesh-cfgclient: Prevent storing duplicate models

This fixes the situation when subsequent requests to get a node
composition result in appending element's model list with duplicate models.
This adds a check for a presence of a model on an element when attempting
to add a new model ID to a model list on this element.
tools/mesh/mesh-db.c
tools/mesh/remote.c