public static byte[] intToBytes(int i) {
        return ByteBuffer.allocate(4).putInt(i).array();
    }
Convert signed bytes to a 16-bit unsigned int.
mesh/src/main/java/no/nordicsemi/android/mesh/utils/MeshParserUtils.java