OSDN Git Service

lejos_NXJ_win32_0_3_0alpha.zip
[nxt-jsp/lejos_nxj.git] / nxtOSEK / lejos_nxj / src / java / pccomms / lejos / pc / comm / NXTInfo.java
diff --git a/nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/NXTInfo.java b/nxtOSEK/lejos_nxj/src/java/pccomms/lejos/pc/comm/NXTInfo.java
new file mode 100644 (file)
index 0000000..86aba24
--- /dev/null
@@ -0,0 +1,20 @@
+package lejos.pc.comm;
+
+public class NXTInfo {
+       public String name;
+       public String btDeviceAddress;
+       public String btResourceString;
+       public int nxtPtr;
+       public int protocol = 0; // 0=URL, 1 = Bluetooth
+       
+       public NXTInfo() {
+               
+       }
+       
+       public NXTInfo(String name, String address) {
+               this.name = name;
+               this.btDeviceAddress = address;
+               this.btResourceString = name + "::" + address;
+               this.protocol = NXTCommFactory.BLUETOOTH;
+       }
+}