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) |
getConnection
protected LRFReader.Callback callback
public void onRead(byte[] data)
BluetoothConnection.Callback
data
- the bytes read from the bluetooth connection.protected BluetoothConnection onInstantiateConnection(android.bluetooth.BluetoothDevice device)
onInstantiateConnection
in class BluetoothReader
public BluetoothCotManager getCotManager(MapView mapView)
getCotManager
in class BluetoothReader
public void setCallback(LRFReader.Callback callback)
protected float[] parseData(byte[] data)
protected float[] parseData1(byte[] data)