Skip to content

Data not complete #23

Description

@juangdiaz

Hi,
When my device reads the data coming in from the Arduino the data is coming in chopped, the data im receiving comes in very fast.
Log:
03-20 21:35:18.693 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 1
03-20 21:35:18.699 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 22in, 313
03-20 21:35:18.805 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 9
03-20 21:35:18.818 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 0in, 231c
03-20 21:35:18.917 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 8
03-20 21:35:18.943 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 9in, 229cm
03-20 21:35:19.043 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 8
03-20 21:35:19.044 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 9in, 228cm
03-20 21:35:19.168 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 8
03-20 21:35:19.170 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 9in, 228c
03-20 21:35:19.268 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 8
03-20 21:35:19.273 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 9in, 228cm
03-20 21:35:19.394 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 8
03-20 21:35:19.397 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 9in, 228cm
03-20 21:35:19.492 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 8
03-20 21:35:19.518 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 9in, 228cm

however the data should read:
03-20 21:35:18.693 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 122in, 313cm
03-20 21:35:18.805 30385-30385/com.bluetooth.juandiaz.bluetoothconnectivity D/data:: 90in, 231cm

do you know what could cause this?

also i tried using
simpleBluetooth.setInputStreamType(BluetoothUtility.InputStreamType.BUFFERED);
and
simpleBluetooth.setInputStreamType(BluetoothUtility.InputStreamType.NORMAL);
but is not working

im using an arduino with a proximity sensor

Thanks for the help

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions