mesh: Handle "options" dictionary in Send/Publish methods
authorInga Stotland <inga.stotland@intel.com>
Tue, 25 Aug 2020 00:54:33 +0000 (17:54 -0700)
committerAbhay Agarwal <ay.agarwal@samsung.com>
Mon, 28 Dec 2020 06:20:04 +0000 (11:50 +0530)
commita8e111963bb8cdfc8b50a070944f3906da1f461a
treeaade6596f9874da537597bc05c3a1811987a65a7
parent9d3f3ca3fc8ec24c499cb19ad10b21a0ebc3c155
mesh: Handle "options" dictionary in Send/Publish methods

This adds processing of "options" dictionary argument in Send,
DevKeySend & Publish methods on mesh.Node interface.

This new argument is a dictionary that currently has only one
new key word defined for Send() and DevKeySend():
    "ForceSegmented" - to force small payloads to be sent as
                       one-segment messages

In case of Publish(), and additional keyword is defined
     "Vendor" -  16-bit Company ID as defined by the Bluetooth SIG

Other key words may be defined in future to accommodate evolving
requirements of Mesh Profile specification.

Also, the addition of "options" dictionary to Publish allows to
eliminate VendorPublish() method (taken care by "Vendor" keyword).

Change-Id: I651165b5844fa2f709bcf563d17a07c8bbb0f324
Signed-off-by: anuj.bhumiya <anuj.bhumiya@samsung.com>
mesh/cfgmod-server.c
mesh/model.c
mesh/model.h
mesh/node.c