public static int hexToInt(String hex) {
        return MeshParserUtils.bytesToInt(MeshParserUtils.toByteArray(hex));
    }
Convert signed bytes to a 16-bit unsigned int.
mesh/src/main/java/no/nordicsemi/android/mesh/utils/MeshParserUtils.java