2020-05-05 04:21 AM
Hi Sir/Madam,
In STblemesh app after configuring the node we can observe node number also element number. what elementNumber means in the app. Also in the firmware part calculated element number following way. Can you explain why we calculated this way.
node address = BluenrgMesh_GetAddress();
elementNumber = ((dst_peer - nodeAddress)+1);
Regards,
Anitha.
2020-05-10 08:19 PM
Nodes can have multiple, constituent parts, each of which can be independently controlled.These parts are called elements in BLE mesh terminology.
A typical example is that you have a lighting product having 3 LED lights, then this node will have 3 elements.
By default, the addresses of elements are sequentially initialized, each node increasing 1 over the node address (base).
So this line
elementNumber = ((dst_peer - nodeAddress)+1);
calculates which element it is.