public class LRFReader extends BluetoothReader
| Modifier and Type | Class and Description |
|---|---|
static interface |
LRFReader.Callback |
| Modifier and Type | Field and Description |
|---|---|
protected LRFReader.Callback |
callback |
connection| Constructor and Description |
|---|
LRFReader(android.bluetooth.BluetoothDevice device) |
| Modifier and Type | Method and Description |
|---|---|
BluetoothCotManager |
getCotManager(MapView mapView) |
protected BluetoothConnection |
onInstantiateConnection(android.bluetooth.BluetoothDevice device) |
void |
onRead(byte[] data)
The byte array read from the Bluetooth connection.
|
protected float[] |
parseData(byte[] data) |
protected float[] |
parseData1(byte[] data) |
void |
setCallback(LRFReader.Callback callback) |
getConnectionprotected LRFReader.Callback callback
public void onRead(byte[] data)
BluetoothConnection.Callbackdata - the bytes read from the bluetooth connection.protected BluetoothConnection onInstantiateConnection(android.bluetooth.BluetoothDevice device)
onInstantiateConnection in class BluetoothReaderpublic BluetoothCotManager getCotManager(MapView mapView)
getCotManager in class BluetoothReaderpublic void setCallback(LRFReader.Callback callback)
protected float[] parseData(byte[] data)
protected float[] parseData1(byte[] data)