What I want to accomplish
I want to create a bluetooth mesh application. I want one board to act as a server and 12 or more other boards acting as clients. Each client will have 4 buttons and upon pushing one button on the client,will send send a ON status should to the server. So basically all the clients will send messages to the server when a button is pushed.
My understanding/Assumptions
Please correct my understanding if is wrong..My understanding is since the documentation mentions each element acting as a virtual entity in the mesh with its own unique unicast address and only one model instance per element can implement a handler for a specific message opcode(in this case SIMPLE_ON_OFF_OPCODE_SET)
So for my 12 client nodes (each with 4 buttons) I would need to declare 4 elements in each node.That means for 12 client nodes each with 4 elements, On a server node I will have to instantiate 48 elements each implementing a handler for OPCODE_SET.
Questions
How would I know a message came from this a certain node and element?
How would this work at the time of configuration, in other words will I have to give one publication address for all 48 elements or just 12 nodes?
I am sure there is a better way to do it, please advise.