Example #1
0
  public void close() {
    Log.v(TAG, "Closing connection with " + remoteDevice.toString());
    try {
      Thread.sleep(WAIT_CLOSE);
      socket.close();
    } catch (Exception e) {
    }

    listener.onClose(remoteDevice);
  }