Parent: 807886eb5717902cd10ff8ad13e91d9200f0549d
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2020-07-01 22:06:07
Tree: b01c71488ab6807ba2296411ae2df48a0fb91a34
mesh: Check app model settings of pub/sub support This adds handling of new options dictionary included with "Models" and "VendorModels" properties on org.bluez.mesh.Element1 interface. Supported (optional) dictionary entries: "Publish" - indicates whether the model supports publication mechanism. If not present, publication is enabled. "Subscribe" - indicates whether the model supports subscription mechanism. If not present, subscriptions are enabled. If a config message related to subscription state is received for a model that does not support subscription mechanism, an error code 0x08, ("Not A Subscribe Model") is sent in response. If a config message related to publication state is received for a model that does not support publication mechanism, an error code 0x07 ("Invalid Publish Parameters") is sent in response.
Diffstat
| M | mesh/mesh-config-json.c | | | 76 | ++++++++++++++++++++++++++++++++++++++++- |
| M | mesh/mesh-config.h | | | 8 | ++++++++ |
| M | mesh/model.c | | | 98 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - |
| M | mesh/model.h | | | 6 | ++++++ |
| M | mesh/node.c | | | 168 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
5 files changed, 309 insertions(+), 47 deletions(-)