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.IOExceptionpublic SensorMode getSensorMode(char sensorType) throws java.io.IOException, java.lang.InterruptedException
sensorType - the single character sensor mode identifierjava.io.IOExceptionjava.lang.InterruptedExceptionpublic void sendCmd(java.lang.String cmd)
throws java.io.IOException
cmd - java.io.IOExceptionpublic int getReply(int offset)
throws java.io.IOException
java.io.IOExceptionpublic void processData()
throws java.io.IOException
java.io.IOException