Class SerialPortConstants


  • public class SerialPortConstants
    extends Object
    Provides constants and static methods related to 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 (see SecurityLevels).
        Returns:
        the definition of the serial port service.