Publishing user data


ashish.shukla@corvi.com <ashish.shukla@...>
 

Hi everyone !

In a project, I need to publish specific data to neighboring nodes utilizing TTL value. For this sake, I've configured all the nodes to be a relay node and publish address for the model is set to 0xFFE, which has been done so that it publishes to all relay nodes.Is my understanding of address 0xFFE correct?

Now, when I configured this node using android app, publish address of the model is over-written by the app.

Should I modify this address to 0xFFE before using bt_mesh_model_publish() API ? 


--
Warm regards,
Ashish Shukla
Jr. Embedded Engineer
Research & Development


Please consider the environment before printing this e-mail or its attachments.

Disclaimer: The information contained herein (including any accompanying documents) is confidential and is intended solely for the addressee(s). If you have erroneously received this message, please immediately delete it and notify the sender. Also, if you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this message or any accompanying document is strictly prohibited and is unlawful. The organization is not responsible for any damage caused by a virus or alteration of the e-mail by a third party or otherwise. The contents of this message may not necessarily represent the views or policies of Corvi


Johan Hedberg
 

Hi Ashish,

On Mon, Dec 04, 2017, ashish.shukla@corvi.com wrote:
In a project, I need to publish specific data to neighboring nodes
utilizing TTL value. For this sake, I've configured all the nodes to be a
relay node and publish address for the model is set to 0xFFE, which has
been done so that it publishes to all relay nodes.Is my understanding of
address 0xFFE correct?
The "all relays" group address is 0xfffe and not 0xffe. In most cases
it's unwise (inefficient) to have all nodes of a mesh network acting as
relays, so you may want to rethink your setup. It might make more sense
to use a normal group address instead. Note that with a normal group
address, after configuring model publication, you'll also need to
configure model subscription by having your provisioner send Config
Model Subscription Add messages to your nodes.

Now, when I configured this node using android app, publish address of the
model is over-written by the app.
What do you mean that it's overwritten? The provisioner (the "android
app" in this case I suppose?) is the entity that in most normal
situations is expected to configure the model publication. I.e. the
publication address wouldn't be set to anything until the app sends a
Config Model Publication Set message to your node.

Should I modify this address to 0xFFE before using bt_mesh_model_publish()
API ?
What do you mean by "modify"? Normally it would be the provisioner that
configures the model publication with through the configuration model.

Johan