I need to configure 2 devices as relay nodes in order to relay messages from the client node to the server node
How can i implement this in the light switch example ?
I need to configure 2 devices as relay nodes in order to relay messages from the client node to the server node
How can i implement this in the light switch example ?
to clear things up, what i want to do is to enable relay feature in 2 devices acting as relay nodes to retransmit messages from client node to server node in the light switch example
Do i have to flash server's firmware into these relay nodes?
It seems that the relay functionality is turned on automatically on the server FW. If you take a look at the light switch server example on the latest Mesh SDK, you can see that the m_relay_enable bool is set true in the network_init() function. To test that the servers are relaying the messages, you could lower the TX power of the devices (explained in this link) & then make the last node outside of the range of the client node & put the two relay nodes in between.
Hi, I do not believe this will be an issue. I would suggest you to test this out yourself to make sure this works. You may need to lower the output power of the devices to test this properly. You can do this by using the sd_ble_gap_tx_power_set() function or by changing the tx power register directly in the radio_config_config() function: NRF_RADIO->TXPOWER = p_config->tx_power;
hi
where can i find network_init() function to set m_relay_enable true.
Which version of the mesh sdk are you using? This method only works for old mesh sdk versions.
i am using 2.2 mesh sdk.
For which version the method is different?
Relaying should be enabled by default irrespective on mesh sdk. Have you tested to see if the relaying capability works?
Relaying should be enabled by default irrespective on mesh sdk. Have you tested to see if the relaying capability works?
Yes I tried testing but the range for 0dBm is long,so trying to reduce tx_power to test relay.