
<span class="p">}</span>
</code></pre>
<h2 id='send-command' class='heading'>Send Command</h2>

<p>Send a command to a vehicle</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">command</span> <span class="o">=</span> <span class="kt">Command</span><span class="o">.</span><span class="n">unlockDoors</span>

<span class="n">teslaAPI</span><span class="o">.</span><span class="nf">send</span><span class="p">(</span><span class="n">command</span><span class="p">,</span> <span cl