Package ej.bluetooth.util.services.sps
Class SerialPortConstants
- java.lang.Object
-
- ej.bluetooth.util.services.sps.SerialPortConstants
-
public class SerialPortConstants extends java.lang.ObjectProvides constants and static methods related to the serial port service.
-
-
Field Summary
Fields Modifier and Type Field Description static ej.bluetooth.BluetoothUuidRX_UUIDThe UUID of the RX characteristic.static ej.bluetooth.BluetoothUuidSERVICE_UUIDThe UUID of the serial port service.static ej.bluetooth.BluetoothUuidTX_UUIDThe UUID of the TX characteristic.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ej.bluetooth.BluetoothServiceDefinitiongetServiceDefinition(int securityLevel)Gets the definition of the serial port service.
-
-
-
Field Detail
-
SERVICE_UUID
public static final ej.bluetooth.BluetoothUuid SERVICE_UUID
The UUID of the serial port service.
-
TX_UUID
public static final ej.bluetooth.BluetoothUuid TX_UUID
The UUID of the TX characteristic.
-
RX_UUID
public static final ej.bluetooth.BluetoothUuid RX_UUID
The UUID of the RX characteristic.
-
-
Method Detail
-
getServiceDefinition
public static ej.bluetooth.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.
-
-