@Override
    public byte[] getBytes() {
        final float val;
        if (getLength() == 1) {
            val = value * 10;
            return new byte[]{(byte) val};
        }
        val = value * 100;
        return ByteBuffer.allocate(getLength()).order(LITTLE_ENDIAN).putShort((short) val).array();
    }
Temperature characteristic for Temperature and Temperature 8
@param temperature temperature
mesh/src/main/java/no/nordicsemi/android/mesh/sensorutils/Temperature.java