public class BluetoothASCIIClientConnection 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 |
---|
BluetoothASCIIClientConnection(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 line of text.
|
getDevice, isRunning, setCallback, setRunning, start, stop
protected android.bluetooth.BluetoothSocket socket
protected final java.lang.String name
public BluetoothASCIIClientConnection(android.bluetooth.BluetoothDevice device, java.util.UUID uuid)
protected byte[] read() throws java.io.IOException
read
in class BluetoothConnection
java.io.IOException
protected void onStop() throws java.io.IOException
java.io.IOException
protected boolean isConnected()
isConnected
in class BluetoothConnection
protected void onStart(android.bluetooth.BluetoothDevice device, java.util.UUID uuid) throws java.io.IOException
onStart
in class BluetoothConnection
java.io.IOException