RSSI MESH example?

Hello,

I am looking for an RSSI example, using the dev-kit nRF52DK. To start off, I will have two dev-kits and measuring the range between the two units. After that I would like to have several units, to test an extended range. 

Parents
  • First part solved!

    I have used the example Light + Light switch and have added the following

    in file:  app_onoff.c

    static void generic_onoff_state_set_cb(const generic_onoff_server_t * p_self,
    const access_message_rx_meta_t * p_meta,
    const generic_onoff_set_params_t * p_in,
    const model_transition_t * p_in_transition,
    generic_onoff_status_params_t * p_out)
    {
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "msg: SET: %d\n", p_in->on_off);
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "rssi: %d\n", p_meta->p_core_metadata->params.scanner.rssi);

    ** Only the last line has been added to this function




Reply
  • First part solved!

    I have used the example Light + Light switch and have added the following

    in file:  app_onoff.c

    static void generic_onoff_state_set_cb(const generic_onoff_server_t * p_self,
    const access_message_rx_meta_t * p_meta,
    const generic_onoff_set_params_t * p_in,
    const model_transition_t * p_in_transition,
    generic_onoff_status_params_t * p_out)
    {
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "msg: SET: %d\n", p_in->on_off);
    __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "rssi: %d\n", p_meta->p_core_metadata->params.scanner.rssi);

    ** Only the last line has been added to this function




Children
Related