@Override
    public byte[] getBytes() {
        byte[] bytes = {(byte) 0xFF, (byte) 0xFF};
        if (this.value != null) {
            int bits = (int) (this.value * 100.0f + 0.5f);
            for (int n = 0; n < 2; n++) {
                bytes[n] = (byte) ((bits >> (n * 8)) & 0xFF);
            }
        }
        return bytes;
    }
Electric current characteristic

@param current Current in units of ampere.
mesh/src/main/java/no/nordicsemi/android/mesh/sensorutils/ElectricCurrent.java