Re: understanding of logic behind address used in Publish-Subscribe mechanism for Bluetooth Mesh

Johan Hedberg

Hi Vikrant,

On Sat, Dec 02, 2017, Vikrant More wrote:
unsigned char elem_idx = model->elem->addr - bt_mesh_primary_addr();
What do you need this for? If you need to access the element it's right
there in model->elem.

Data(set)= *0 or 1*
Data(set) unicast_addr = *1*
Data(set) pub_addr = *0xC000 <--------------------------What is
significance of this address ??*
Data(set) sub_addr =

*0XC001 *

*when I control Led individually , source address = 0x2001 & destination
address = 0x0001*

*when I control Led using master control , source address = 0x2001 &
destination address = 0xC001.*

*Then tell me what is roll or use of 0xC000 ?*

*Or how it will help us ?*
That's just some group address the provisioner has apparently configured
this model to publish to.


Join to automatically receive all group messages.