public static SensorSamplingFunction from(final byte samplingFunction) {
        switch (samplingFunction) {
            case 0x00:
                return UNSPECIFIED;
            case 0x01:
                return INSTANTANEOUS;
            case 0x02:
                return ARITHMETIC_MEAN;
            case 0x03:
                return RMS;
            case 0x04:
                return MAXIMUM;
            case 0x05:
                return MINIMUM;
            case 0x06:
                return ACCUMULATED;
            case 0x07:
                return COUNT;
            default:
                return UNKNOWN;
        }
    }
Returns the SensorSamplingFunction.

@param samplingFunction Sampling function.
mesh/src/main/java/no/nordicsemi/android/mesh/sensorutils/SensorSamplingFunction.java