Package ej.bluetooth.util.services.sps
Class SerialPortConstants
- java.lang.Object
-
- ej.bluetooth.util.services.sps.SerialPortConstants
-
public class SerialPortConstants extends Object
Provides constants and static methods related to the serial port service.
-
-
Field Summary
Fields Modifier and Type Field Description static BluetoothUuidRX_UUIDThe UUID of the RX characteristic.static BluetoothUuidSERVICE_UUIDThe UUID of the serial port service.static BluetoothUuidTX_UUIDThe UUID of the TX characteristic.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BluetoothServiceDefinitiongetServiceDefinition(int securityLevel)Gets the definition of the serial port service.
-
-
-
Field Detail
-
SERVICE_UUID
public static final BluetoothUuid SERVICE_UUID
The UUID of the serial port service.
-
TX_UUID
public static final BluetoothUuid TX_UUID
The UUID of the TX characteristic.
-
RX_UUID
public static final BluetoothUuid RX_UUID
The UUID of the RX characteristic.
-
-
Method Detail
-
getServiceDefinition
public static BluetoothServiceDefinition getServiceDefinition(int securityLevel)
Gets the definition of the serial port service.- Parameters:
securityLevel- the security level (seeSecurityLevels).- Returns:
- the definition of the serial port service.
-
-