Issue with Open Chargemap on iOS, newest Xcode and SDK
Hi guys, I have problems with OCM when I compile with the newest Xcode and SDK. The JSON-response from OCM looks fine, but the data-object containing the JSON-response might be different from the old SDK. Trying to fetch data from the JSON-object fails. This is the first code that fails: - (void)syncAction:(NSDictionary *)data { ... [self parseConnectionTypes:NULL_TO_NIL(data[@"ConnectionTypes"])]; The watch tells me data[@"ConnectionTypes”] is an "invalid expression”, which is understandable since data is an NSCFArray with 100 entries of NSCFDictionary, so data simply do not contain any keys. Shouldn't data have been a dictionary instead? Any ideas, guys? Regards, Geir
Hi, I've submitted a pull request with a fix: https://github.com/openvehicles/Open-Vehicle-iOS/pull/17 The API call was accidentally fetching a POI list instead of the OCM reference data, also iOS 9 no longer allows simple http calls and requires HTTPS. Cheers, Chris
Thanks, Chris :-)
14. des. 2015 kl. 11.41 skrev Christopher Cook <christopher.cook@webprofusion.com>:
Hi,
I've submitted a pull request with a fix: https://github.com/openvehicles/Open-Vehicle-iOS/pull/17
The API call was accidentally fetching a POI list instead of the OCM reference data, also iOS 9 no longer allows simple http calls and requires HTTPS.
Cheers, Chris
_______________________________________________ OvmsDev mailing list OvmsDev@lists.teslaclub.hk http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
participants (2)
-
Christopher Cook -
Geir Øyvind Vælidalo