Hi everyone,
I have Arduino with a bluetooth module that sends data every 500ms.
Secondly I have an App inventor app that connects to the bluetoothdevice end receives the data.
My problem is that after I select the bluetooth device and connect to it, I get a lot of (old) data that's comming in rapidly and after that I receive data at an expected rate.
So my guess is that I have to flush the bluetooth buffer before I start viewing my data in the app.
I tried following code block to flush the data : call bluetoothClient1.Receivetext numberOfBytes -> call bluetoothClient1.BytesavailableToReceive but this didn't seem to have any effect.
Does someone has a suggestion?
Kind regards, Sven