Class SerialPortConstants


  • public class SerialPortConstants
    extends java.lang.Object
    Provides constants and static methods related to the serial port service.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static ej.bluetooth.BluetoothUuid RX_UUID
      The UUID of the RX characteristic.
      static ej.bluetooth.BluetoothUuid SERVICE_UUID
      The UUID of the serial port service.
      static ej.bluetooth.BluetoothUuid TX_UUID
      The UUID of the TX characteristic.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ej.bluetooth.BluetoothServiceDefinition getServiceDefinition​(int securityLevel)
      Gets the definition of the serial port service.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 (see SecurityLevels).
        Returns:
        the definition of the serial port service.