public class BluetoothBinaryClientConnection extends BluetoothConnection
BluetoothConnection.Callback| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
name |
protected android.bluetooth.BluetoothSocket |
socket |
MY_UUID_INSECURE| Constructor and Description |
|---|
BluetoothBinaryClientConnection(android.bluetooth.BluetoothDevice device,
java.util.UUID uuid) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isConnected() |
protected void |
onStart(android.bluetooth.BluetoothDevice device,
java.util.UUID uuid)
onStart is responsible for cancelling any high bandwidth discovery and creating a secure or
insecure connection with the bluetooth device.
|
protected void |
onStop() |
protected byte[] |
read()
Reads a block of data
|
getDevice, isRunning, setCallback, setRunning, start, stopprotected android.bluetooth.BluetoothSocket socket
protected final java.lang.String name
public BluetoothBinaryClientConnection(android.bluetooth.BluetoothDevice device,
java.util.UUID uuid)
protected byte[] read()
throws java.io.IOException
read in class BluetoothConnectionjava.io.IOExceptionprotected void onStop()
throws java.io.IOException
java.io.IOExceptionprotected boolean isConnected()
isConnected in class BluetoothConnectionprotected void onStart(android.bluetooth.BluetoothDevice device,
java.util.UUID uuid)
throws java.io.IOException
onStart in class BluetoothConnectionjava.io.IOException