private static int unsignedByteToInt(byte b) {
        return b & 0xFF;
    }
Convert a signed byte to an unsigned int.
rxandroidble/src/main/java/com/polidea/rxandroidble2/helpers/ValueInterpreter.java