I am using the bluetooth chat example to stream data from an external sensor. this works fine and I receive all the data. What I need to do next is sample the received data at set time periods (every 10ms for example). 

Can anyone advise on what to use in order to this and how to interact with the bluetooth thread?