public class MindsensorsBTSense
extends java.lang.Object
Constructor and Description |
---|
MindsensorsBTSense()
Connection to the BTSense application and identify device as EV3
|
Modifier and Type | Method and Description |
---|---|
int |
getReply(int offset) |
SensorMode |
getSensorMode(char sensorType)
Get a SensorMode object for a specific sensor mode and request data from phone
|
void |
processData()
Process data from the phone application
|
void |
sendCmd(java.lang.String cmd)
Send a command to the phone application, with a transaction id
|
public MindsensorsBTSense() throws java.io.IOException
java.io.IOException
public SensorMode getSensorMode(char sensorType) throws java.io.IOException, java.lang.InterruptedException
sensorType
- the single character sensor mode identifierjava.io.IOException
java.lang.InterruptedException
public void sendCmd(java.lang.String cmd) throws java.io.IOException
cmd
- java.io.IOException
public int getReply(int offset) throws java.io.IOException
java.io.IOException
public void processData() throws java.io.IOException
java.io.IOException