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

Log Transition time in app_generic_onoff_client_status_cb

Hello, 

I am doing some testing on the nrf52832 DK using the mesh light switch example, i am sending ACK messages, i would like to log the time it takes the message to reach the server node or the response time, what function should i call ?

The  transition_params.transition_time_ms = APP_CONFIG_ONOFF_TRANSITION_TIME_MS; doesn't seem to be correct.

/* Generic OnOff client model interface: Process the received status message in this callback */
static void app_generic_onoff_client_status_cb(const generic_onoff_client_t * p_self,
                                               const access_message_rx_meta_t * p_meta,
                                               const generic_onoff_status_params_t * p_in)
{
    if (p_in->remaining_time_ms > 0)
    {
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "OnOff server: 0x%04x, Present OnOff: %d, Target OnOff: %d, Remaining Time: %dms\n",
              p_meta->src.value, p_in->present_on_off, p_in->target_on_off, p_in->remaining_time_ms);
    }  
    else
    {
        __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "OnOff server: 0x%04x, Present OnOff: %d\n",
              p_meta->src.value,  p_in->present_on_off);
    }
}

2. I have another DK that works but would not connect to my PC (USB) i.e it's not recognized by Segger, also LD5 is not blinking as usually

Parents Reply Children
No Data
Related