diff options
author | Inga Stotland <inga.stotland@intel.com> | 2020-08-24 17:54:33 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2020-08-26 08:46:55 -0700 |
commit | f2dc6f99f08b2ac1ef310fce14abc69f9116a5d7 (patch) | |
tree | 530facaba992328d2c66a077f6dbfc00a6c88720 /mesh/cfgmod-server.c | |
parent | 879ea56829c49e94f1015ca13715709ffe970388 (diff) | |
download | bluez-f2dc6f99f08b2ac1ef310fce14abc69f9116a5d7.tar.gz |
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).
Diffstat (limited to 'mesh/cfgmod-server.c')
-rw-r--r-- | mesh/cfgmod-server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c index 239ea889d..2e5da863a 100644 --- a/mesh/cfgmod-server.c +++ b/mesh/cfgmod-server.c @@ -1088,7 +1088,7 @@ static bool cfg_srv_pkt(uint16_t src, uint16_t dst, uint16_t app_idx, if (n) mesh_model_send(node, dst, src, APP_IDX_DEV_LOCAL, net_idx, - DEFAULT_TTL, false, msg, n); + DEFAULT_TTL, false, n, msg); return true; } |