forked from h2zero/esp-nimble-cpp
Release v1.4.0
This commit is contained in:
+8
-39
@@ -26,7 +26,7 @@
|
||||
<tr style="height: 56px;">
|
||||
<td id="projectalign" style="padding-left: 0.5em;">
|
||||
<div id="projectname">esp-nimble-cpp
|
||||
 <span id="projectnumber">1.3.2</span>
|
||||
 <span id="projectnumber">1.4.0</span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -94,28 +94,15 @@ $(document).ready(function(){initNavTree('index.html',''); initResizable(); });
|
||||
<em>Your results may vary</em> <br />
|
||||
<br />
|
||||
</p>
|
||||
<h1><a class="anchor" id="autotoc_md33"></a>
|
||||
<h1><a class="anchor" id="autotoc_md42"></a>
|
||||
What is NimBLE?</h1>
|
||||
<p>NimBLE is a completely open source Bluetooth Low Energy stack produced by <a href="https://github.com/apache/mynewt-nimble">Apache</a>. <br />
|
||||
It is more suited to resource constrained devices than bluedroid and has now been ported to the ESP32 by Espressif. <br />
|
||||
<br />
|
||||
</p>
|
||||
<h1><a class="anchor" id="autotoc_md34"></a>
|
||||
Arduino Installation</h1>
|
||||
<p><b>Arduino Library manager:</b> Go to <code>sketch</code> -> <code>Include Library</code> -> <code>Manage Libraries</code> and search for NimBLE and install. <br />
|
||||
</p>
|
||||
<p><b>Alternatively:</b> Download as .zip and extract to Arduino/libraries folder, or in Arduino IDE from Sketch menu -> Include library -> Add .Zip library. <br />
|
||||
</p>
|
||||
<p><code>#include "NimBLEDevice.h"</code> at the beginning of your sketch. <br />
|
||||
</p>
|
||||
<p>Call <code><a class="el" href="class_nim_b_l_e_device.html#a674d2e68d4ba0e3f84d7993f9da7d15b" title="Initialize the BLE environment.">NimBLEDevice::init</a></code> in <code>setup</code>.</p>
|
||||
<p>Tested and working with esp32-arduino in Arduino IDE and platform IO. <br />
|
||||
<br />
|
||||
<br />
|
||||
</p>
|
||||
<h1><a class="anchor" id="autotoc_md35"></a>
|
||||
<h1><a class="anchor" id="autotoc_md43"></a>
|
||||
ESP-IDF Installation</h1>
|
||||
<h3><a class="anchor" id="autotoc_md36"></a>
|
||||
<h3><a class="anchor" id="autotoc_md44"></a>
|
||||
v4.0+</h3>
|
||||
<p>Download as .zip and extract or clone into the components folder in your esp-idf project.</p>
|
||||
<p>Run menuconfig, go to <code>Component config->Bluetooth</code> enable Bluetooth and in <code>Bluetooth host</code> NimBLE. <br />
|
||||
@@ -124,7 +111,7 @@ v4.0+</h3>
|
||||
Call <code><a class="el" href="class_nim_b_l_e_device.html#a674d2e68d4ba0e3f84d7993f9da7d15b" title="Initialize the BLE environment.">NimBLEDevice::init</a></code> in <code>app_main</code>. <br />
|
||||
<br />
|
||||
</p>
|
||||
<h3><a class="anchor" id="autotoc_md37"></a>
|
||||
<h3><a class="anchor" id="autotoc_md45"></a>
|
||||
v3.2 & v3.3</h3>
|
||||
<p>The NimBLE component does not come with these versions of IDF (now included in 3.3.2 and above). <br />
|
||||
A backport that works in these versions has been created and is <a href="https://github.com/h2zero/esp-nimble-component">available here</a>. <br />
|
||||
@@ -135,7 +122,7 @@ v3.2 & v3.3</h3>
|
||||
<br />
|
||||
<br />
|
||||
</p>
|
||||
<h1><a class="anchor" id="autotoc_md38"></a>
|
||||
<h1><a class="anchor" id="autotoc_md46"></a>
|
||||
Using</h1>
|
||||
<p>This library is intended to be compatible with the original ESP32 BLE functions and types with minor changes. <br />
|
||||
</p>
|
||||
@@ -147,30 +134,12 @@ Using</h1>
|
||||
<p>For more advanced usage see <a class="el" href="md__usage_tips.html">Usage tips</a> for more performance and optimization. <br />
|
||||
<br />
|
||||
</p>
|
||||
<h3><a class="anchor" id="autotoc_md39"></a>
|
||||
Arduino specific</h3>
|
||||
<p>See the Refactored_original_examples in the examples folder for highlights of the differences with the original library. <br />
|
||||
</p>
|
||||
<p>More advanced examples highlighting many available features are in examples/NimBLE_Server, NimBLE_Client. <br />
|
||||
</p>
|
||||
<p>Beacon examples provided by <a href="https://github.com/beegee-tokyo">beegee-tokyo</a> are in examples/BLE_Beacon_Scanner, BLE_EddystoneTLM_Beacon, BLE_EddystoneURL_Beacon. <br />
|
||||
</p>
|
||||
<p>Change the settings in the <a class="el" href="nimconfig_8h.html">nimconfig.h</a> file to customize NimBLE to your project, such as increasing max connections (default is 3). <br />
|
||||
<br />
|
||||
</p>
|
||||
<h3><a class="anchor" id="autotoc_md40"></a>
|
||||
Arduino command line and platformio</h3>
|
||||
<p>As an alternative to changing the configuration in <a class="el" href="nimconfig_8h.html">nimconfig.h</a>, Arduino command line and platformio.ini options are available. <br />
|
||||
See the command line configuration options available in <a class="el" href="md__command_line_config.html">Command line config</a>. <br />
|
||||
<br />
|
||||
<br />
|
||||
</p>
|
||||
<h1><a class="anchor" id="autotoc_md41"></a>
|
||||
<h1><a class="anchor" id="autotoc_md47"></a>
|
||||
Need help? Have a question or suggestion?</h1>
|
||||
<p>Come chat on <a href="https://gitter.im/NimBLE-Arduino/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link">gitter</a> or open an issue at <a href="https://github.com/h2zero/NimBLE-Arduino/issues">NimBLE-Arduino</a> or <a href="https://github.com/h2zero/esp-nimble-cpp/issues">esp-nimble-cpp</a> <br />
|
||||
<br />
|
||||
</p>
|
||||
<h1><a class="anchor" id="autotoc_md42"></a>
|
||||
<h1><a class="anchor" id="autotoc_md48"></a>
|
||||
Acknowledgments</h1>
|
||||
<ul>
|
||||
<li><a href="https://github.com/nkolban">nkolban</a> and <a href="https://github.com/chegewara">chegewara</a> for the <a href="https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils">original esp32 BLE library</a> this project was derived from.</li>
|
||||
|
||||
Reference in New Issue
Block a user