<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Steve,<br>
<br>
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.<br>
<br>
Regarding HTTP requests, the current approach would be either using
the new OvmsNetHttpAsyncClient class
(components/ovms_netlib/ovms_nethttp), or using Mongoose directly.<br>
<br>
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.<br>
<br>
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.<br>
<br>
Mark has included a JSON parser in the for-v3.3 branch, if you need
one, have a look at that first.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 19.02.21 um 09:29 schrieb Steve
Davies:<br>
</div>
<blockquote type="cite"
cite="mid:CABFTEGVkw5hcKzwtLG1-BpbxmSD_Evrb3o3uZb-4S2azfua_6g@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"><img
src="https://api2.activeinboxhq.com/1.0/anon/rr/10bc591e8f8299ad33b84fe2e69084e2"
style="display:none !important" moz-do-not-send="true"
width="1" height="1">Hi,
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>This API has been sniffed by others and seems simple to
use.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Would you be OK with taking a PR for the bmwi3 vehicle
module that uses this? </div>
<div><br>
</div>
<div>Are there any available frameworks for calling
HTTP/JSON/REST APIs from the C++ code?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Steve</div>
<div><br>
</div>
</div>
<br>
<font face="Arial, Helvetica, sans-serif"><span
style="font-size:13px"><a
href="https://www.telviva.co.za/legal/email-disclaimer"
target="_blank" moz-do-not-send="true">https://www.telviva.co.za/<wbr>legal/email-disclaimer</a></span></font>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
</body>
</html>