Package 

Class ValueInterpreter

    • Method Detail

      • getIntValue

         static Integer getIntValue(@NonNull() Array<byte> value, int formatType, int offset)

        Return the integer value interpreted from the passed byte array.

        The formatType parameter determines how the valueis to be interpreted. For example, setting formatType to FORMAT_UINT16 specifies that the first two bytes of thecharacteristic value at the given offset are interpreted to generate thereturn value.

        Parameters:
        value - The byte array from which to interpret value.
        formatType - The format type used to interpret the value.
        offset - Offset at which the integer value can be found.
      • getFloatValue

         static Float getFloatValue(@NonNull() Array<byte> value, int formatType, int offset)

        Return the float value interpreted from the passed byte array.

        Parameters:
        value - The byte array from which to interpret value.
        formatType - The format type used to interpret the value.
        offset - Offset at which the float value can be found.
      • getStringValue

         static String getStringValue(@NonNull() Array<byte> value, int offset)

        Return the string value interpreted from the passed byte array.

        Parameters:
        offset - Offset at which the string value can be found.