summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b59e7d0)
Signed-off-by: Mike Beattie <mike@ethernal.org>
private InputStream input;
private OutputStream output;
private InputStream input;
private OutputStream output;
+ // Constructor
+ public AltosBluetooth(BluetoothDevice in_device) {
+ adapter = BluetoothAdapter.getDefaultAdapter();
+
+
+ connect_thread = new ConnectThread(device);
+ connect_thread.start();
+ }
+
private class ConnectThread extends Thread {
private final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
private class ConnectThread extends Thread {
private final UUID SPP_UUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
public boolean show_reply_timeout() { return true; }
public void hide_reply_timeout() { }
public boolean show_reply_timeout() { return true; }
public void hide_reply_timeout() { }
- public AltosBluetooth(BluetoothDevice device) {
- adapter = BluetoothAdapter.getDefaultAdapter();
- connect_thread = new ConnectThread(device, true);
- connect_thread.start();
- }
-}
\ No newline at end of file