Class CurrentTimeConstants


  • public class CurrentTimeConstants
    extends Object
    Provides constants and static methods related to the standard current time service.
    • Field Detail

      • SERVICE_UUID

        public static final BluetoothUuid SERVICE_UUID
        The UUID of the current time service.
      • CURRENT_TIME_UUID

        public static final BluetoothUuid CURRENT_TIME_UUID
        The UUID of the current time characteristic.
      • LOCAL_TIME_INFO_UUID

        public static final BluetoothUuid LOCAL_TIME_INFO_UUID
        The UUID of the local time info characteristic.
    • Method Detail

      • getServiceDefinition

        public static BluetoothServiceDefinition getServiceDefinition​(int securityLevel)
        Gets the definition of the current time service.
        Parameters:
        securityLevel - the security level (see SecurityLevels).
        Returns:
        the definition of the current time service.