Steve, as Chris already said, if it's an opt-in feature the user needs to actively confirm, I don't see an issue with including it. Regarding HTTP requests, the current approach would be either using the new OvmsNetHttpAsyncClient class (components/ovms_netlib/ovms_nethttp), or using Mongoose directly. OvmsNetHttpAsyncClient is meant as a replacement for the old http-only OvmsHttpClient (main/ovms_http), but hasn't been used in the master branch yet. There is some new work on this in the for-v3.3 branch by Chris regarding timeout handling, but the class should work in master as well. An example on using the Mongoose TCP API is in the Pushover class, and another one in the DuktapeHTTPRequest class using the Mongoose HTTP API. Mark has included a JSON parser in the for-v3.3 branch, if you need one, have a look at that first. Regards, Michael Am 19.02.21 um 09:29 schrieb Steve Davies:
Hi,
One way to "command" the BMW/Mini cars is with the BMW ConnectedDrive app. This talks to REST APIs on BMW servers around the place.
This API has been sniffed by others and seems simple to use.
The actual delivery of the command to the car is deathly slow - at least here in South Africa. I think it actually sends the car an SMS to kick things off. And it doesn't always work. Still, it does allow things like unlock / lock / climatise and what have you.
I expect I can come up with some sort of "noop" operation that boils down to "wake up the car" which would be helpful to get fresh state from the car from time to time.
Would you be OK with taking a PR for the bmwi3 vehicle module that uses this?
Are there any available frameworks for calling HTTP/JSON/REST APIs from the C++ code?
Thanks, Steve
https://www.telviva.co.za/legal/email-disclaimer <https://www.telviva.co.za/legal/email-disclaimer>
_______________________________________________ OvmsDev mailing list OvmsDev@lists.openvehicles.com http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-- Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal Fon 02333 / 833 5735 * Handy 0176 / 206 989 26