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

issue in start and stop advertising

Hi, 

I am using nRF52832 , and sdk 15.2 version. I am trying the start the advertisement using timer , once it is connected it should send the data , and should disconnect. start and stop advertising is working with respect to the timer but my data is not receiving in the nRF toolbox app . why ? have a look at my code , correct me if were wrong . Led part is working fine which is declared in the timer_sensor_event_handle(), only the data i am not receiving 

static void timer_sensor_event_handler()
{

advertising_start();


 nrf_delay_ms(10000);

 nrf_gpio_pin_toggle(18);

  ble_nus_data_send(&m_nus, "hello", 25, m_conn_handle);
 nrf_delay_ms(10000);
sd_ble_gap_adv_stop(m_adv_handle);


}

Related