danger.bluetooth
Class BluetoothConnection

java.lang.Object
  extended by danger.bluetooth.BluetoothConnection


EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.

public class BluetoothConnection
extends Object

This class is based on HiptopConnection. It's JavaDoc suffices. Username here can either be the name of a bluetooth device, or it's address in the form "nn:nn:nn:nn:nn:nn".

Since:
3.0

Constructor Summary
BluetoothConnection()
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs. 
 
Method Summary
static void getVersion()
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Request the version of the BluetoothConnection protocol.
static void miscellaneous_ThrowError(byte[] data, int sequenceID)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Send data to service - provided for future expansion.
static void miscellaneous(byte[] data, int sequenceID)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Send data to service - provided for future expansion.
static void send_ThrowError(String username, byte[] data, int sequenceID)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Send data to another hiptop.
static void send(String username, byte[] data, int sequenceID)
          EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.Send data to another hiptop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BluetoothConnection

public BluetoothConnection()
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Method Detail

getVersion

public static void getVersion()
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Request the version of the BluetoothConnection protocol.


send

public static void send(String username,
                        byte[] data,
                        int sequenceID)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Send data to another hiptop.

Parameters:
username - non-null; The bluetooth name or address of the hiptop to send to.
data - The data to be sent.
sequenceID - A sequence number used to match responses with requests

send_ThrowError

public static void send_ThrowError(String username,
                                   byte[] data,
                                   int sequenceID)
                            throws IOException
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Send data to another hiptop. Throws an error if the request cannot be sent immediately. The request will still be queued for delivery when the network connection is restored.

Parameters:
username - non-null; The bluetooth name or address of the hiptop to send to.
data - The data to be sent.
sequenceID - A sequence number used to match responses with requests
Throws:
IOException

miscellaneous

public static void miscellaneous(byte[] data,
                                 int sequenceID)
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Send data to service - provided for future expansion.

Parameters:
data - The data to be sent.
sequenceID - A sequence number used to match responses with requests

miscellaneous_ThrowError

public static void miscellaneous_ThrowError(byte[] data,
                                            int sequenceID)
                                     throws IOException
EXPERIMENTAL Experimental APIs are APIs that are early-stage and not yet finalized or fully qualified. In future releases, these APIs may be changed in incompatible ways, replaced or even removed completely without warning. For these reasons, Danger will not publish applications that use any experimental APIs.
Send data to service - provided for future expansion. Throws an error if the request cannot be sent immediately. The request will still be queued for delivery when the network connection is restored.

Parameters:
data - The data to be sent.
sequenceID - A sequence number used to match responses with requests
Throws:
IOException