Package lejos.hardware
Class Bluetooth
- java.lang.Object
-
- lejos.hardware.Bluetooth
-
public class Bluetooth extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Bluetooth()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetAddress(byte[] address)Return a String version of a Bluetooth address given a binary addressstatic byte[]getAddress(java.lang.String address)Return a Bluetooth binary address given a String version of the addressstatic LocalBTDevicegetLocalDevice()static NXTCommConnectorgetNXTCommConnector()
-
-
-
Method Detail
-
getNXTCommConnector
public static NXTCommConnector getNXTCommConnector()
-
getLocalDevice
public static LocalBTDevice getLocalDevice()
-
getAddress
public static byte[] getAddress(java.lang.String address)
Return a Bluetooth binary address given a String version of the address- Parameters:
address- String address- Returns:
- Binary address
-
getAddress
public static java.lang.String getAddress(byte[] address)
Return a String version of a Bluetooth address given a binary address- Parameters:
address-- Returns:
- the Bluetooth address
-
-