--- Mobile-0005/libraries/bluetooth/processing/bluetooth/Bluetooth.java.orig	2006-08-30 10:47:24.000000000 -0700
+++ Mobile-0005/libraries/bluetooth/processing/bluetooth/Bluetooth.java	2006-09-12 12:37:10.000000000 -0700
@@ -35,6 +35,8 @@
      * on (this)...
      */
     public static final String UUID_DEFAULT = "102030405060708090A0B0C0D0E0F010";
+    /** short UUID assigned to Serial Port Profile */
+    public static final long UUID_SERIALPORT = 0x1101;
     
     public static final int EVENT_DISCOVER_DEVICE               = 1;
     public static final int EVENT_DISCOVER_DEVICE_COMPLETED     = 2;
@@ -77,6 +79,19 @@
         }
     }
         
+    public Bluetooth(PMIDlet midlet, long id) {
+        this.midlet = midlet;
+        devices = new Vector();
+        services = new Vector();
+        try {
+            local = LocalDevice.getLocalDevice();
+            agent = local.getDiscoveryAgent();
+            uuid = new UUID(id);
+        } catch (BluetoothStateException bse) {
+            throw new RuntimeException(bse.getMessage());
+        }
+    }
+
     public void discover() {
         boolean start = false;
         synchronized (UUID_DEFAULT) {
