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

How the example proxy_server in Mesh SDK 2.2.0 to open the relay funcation

Hi:

I use the new Mesh SDK 2.2.0 to make a demo.and I use the proxy_server and proxy_client example.
now,I test and find the proxy_server example don't open the relay function,how to open it?

and I see other questions about Mesh realy, the answer in picture:

in proxy_server example,I can't find the m_relay_enable in network_init(),Has that way changed?

Parents
  • Hi,

    Yes the relay functionality has changed slightly. Take a look at the config_server_evt_t struct, specifically the config_server_evt_relay_set_t relay_set member. Inside the config_server_evt_relay_set_t, the bool enabled determines whether the relay functionality is enabled or not.

    Also take a look at NRF_MESH_OPT_NET_RELAY_ENABLE defined in the nrf_mesh_opt_id_t enum in nrf_mesh_opt.h header file.

    Kind Regards,

    Bjørn

Reply
  • Hi,

    Yes the relay functionality has changed slightly. Take a look at the config_server_evt_t struct, specifically the config_server_evt_relay_set_t relay_set member. Inside the config_server_evt_relay_set_t, the bool enabled determines whether the relay functionality is enabled or not.

    Also take a look at NRF_MESH_OPT_NET_RELAY_ENABLE defined in the nrf_mesh_opt_id_t enum in nrf_mesh_opt.h header file.

    Kind Regards,

    Bjørn

Children
Related