This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Light switch for server to client communication - Bluetooth Mesh

Hello , I am having 3 nRF52832 DK . I tried Light switch - proxy_client and proxy_server example . I provisioned nodes using nRF Mesh app . Here i want to send data from server to client . So i have certain doubts .

1. How to send data from server to client in code? 

2. Let say we have 2 servers and  1 client . Now both the servers publish on a single address (say C001) and client has subscribed to this address (C001) . So if server1 publishes on address , can server2 get the data and transfer it to client ?

Best regards,

Amit Peshwani

 

  • Hi Amit,

    1) Take a look at the light switch proxy client & server examples from mesh sdk v2.2.0. Inside the button_event_handler of the proxy server, you can see code to inform the client about a status change.

    2) Why would you want the server 2 to receive the data & transfer it to the client whe the client has already subscribed to the publish address?

    Kind Regards,

    Bjørn

Related