input = socket.getInputStream();
output = socket.getOutputStream();
+ // Configure the newly connected device for telemetry
+ print("~\nE 0\n");
+ set_monitor(false);
+
// Reset the ConnectThread because we're done
AltosBluetooth.this.notify();
connect_thread = null;
}
private void connection_failed() {
+ if (D) Log.i(TAG, "Bluetooth Connection failed!");
}
public void print(String data) {
byte[] bytes = data.getBytes();
try {
+ if (D) Log.i(TAG, "Entering print();");
wait_connected();
output.write(bytes);
+ if (D) Log.i(TAG, "Writing bytes: '" + data + "'");
} catch (IOException e) {
connection_failed();
} catch (InterruptedException e) {