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

Problem with TIMESLOT API

Hello, I am encountering a very strange problem with the Timeslot API. I am developing with s130 and using the timeslot example provided by Nordic to send data revived via esb to the phone. While I was developing, I have put some SEGGER_RTT_printf statement to debug. However, When I finalized the design and commented out the printf statement, the code does not send data to the phone anymore. I think that the delay provided by the printf statement somehow made my code operate.

The only big modification I made was here where I sent the data received from the esb at some interval.

static void ut_data_handler(void * p_data, uint16_t length)
{
 
	          //My code 

		  ble_nus_string_send(&m_nus, data_array1,2);
 }

    
	  

Is there a possible reason why I am encountering this problem and what are some possible solutions I can try.

Also, I am trying to integrate a timer in order to sample at some interval. Can this integration happen, and if can which timer(0,1,2) do I need to use.

Thank you

Related