I'm using astreams to receive data over a Bluetooth link.
If the comms gets out of sync I need to clear the buffer, before I send another request for data. but I can't see how to clear the buffer, the astreams_newdata only fires when new data is received, if there is data in the buffer I want to discard how can I read this ?
thanks
If the comms gets out of sync I need to clear the buffer, before I send another request for data. but I can't see how to clear the buffer, the astreams_newdata only fires when new data is received, if there is data in the buffer I want to discard how can I read this ?
thanks