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

uart issue

hi...

i am  using nrf52382 segger 15.2 version , i am facing issues i couldn't able to send the data ,here i am advertising using condition if my condition satisfied start the advertising and if it comes to a connection then send the data over ble . my program run success upto connected state while transmitting the data i am getting fatal error 

see my code 

how to solve this ?

if (threshold < 23)
{
   

   advertising_start();
nrf_delay_ms(6000); 
    if (flag==true) //check whether it is connected or not 
{

ret_code_t err_code = ble_nus_data_send(&m_nus, "xxx", 5 , m_conn_handle);



}
    
 }

Parents Reply Children
Related