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

Relay of MESH SDK V2.2.0

Hi,

When I go through the code of light switch example, I am confused about relay functionality.

Compare with the v2.1.1, I can find the m_relay_enable in network.c but in v2.2.0 couldn't. So in this version, how could I enable and disable the relay function?

I know people has asked similar question before but I still don't quite understand. Thank you very much for your help.

Parents Reply
  • Hi, 

    I checked the function and it looks exactly like what you stated above, however, is there any way to check by using log that the node is relaying? I set a log function to the function you meationed above like this: 

        const config_server_evt_t evt = {
            .type = CONFIG_SERVER_EVT_RELAY_SET,
            .params.relay_set.enabled = (p_pdu->relay_state == CONFIG_RELAY_STATE_SUPPORTED_ENABLED),
            .params.relay_set.retransmit_count = p_pdu->relay_retransmit_count,
            .params.relay_set.interval_steps = p_pdu->relay_retransmit_interval_steps
        };
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "config_server_evt_t relay = %d\n", evt.params.relay_set.enabled);

    But nothing appear in the log viewer. I dont know why.

Children
Related