Hi ...
how to send the particular message from client to specific server in mesh ? i am using mesh 3.1
version
i want to use 4 server and one client . client have to send the message to particular server with respect to time
suggest me idea
Hi ...
how to send the particular message from client to specific server in mesh ? i am using mesh 3.1
version
i want to use 4 server and one client . client have to send the message to particular server with respect to time
suggest me idea
Hi,
Have a look at Joakim's reply from your other thread.
As he mentioned in the other thread, if you want to send data from the client to a specific server, you should use the unicast address of the server. It depends on how you provision the nodes, the easiest way would be to use our nRF Mesh app(iOS/Android) to provision and set the publish address of the client.
thank you for your response mttrinh i want to do in board instead of mobile app . i want to make the board to wave as a provisioner.
You can use dsm_address_publish_add() to add an address to the DSM, then use access_model_publish_address_set() to set the publication address of the client mode.
How to achieve that ???
I suggest you to look through the Light switch example and see how the functions are used there. Have a look at the provisioner and client, this might also help.
On the client side, search for handle_config_model_publication_set() in config_server.c. You can find inside this function, the address is set locally calling access_model_publish_address_set().
And look for config_client_server_set() in the provisioner example.
I suggest you to look through the Light switch example and see how the functions are used there. Have a look at the provisioner and client, this might also help.
On the client side, search for handle_config_model_publication_set() in config_server.c. You can find inside this function, the address is set locally calling access_model_publish_address_set().
And look for config_client_server_set() in the provisioner example.