This commit is contained in:
h2zero committed 2022-10-30 17:19:11 +00:00
1 parent a116f0d0c0
commit 73d39b0a88
205 files changed
+1477 -1384

No files matched your search

+5 -5
View File
@@ -26,7 +26,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">esp-nimble-cpp
&#160;<span id="projectnumber">1.4.0</span>
&#160;<span id="projectnumber">1.4.1</span>
</div>
</td>
</tr>
@@ -96,12 +96,12 @@ $(document).ready(function(){initNavTree('md__new_user_guide.html',''); initResi
<br />
</li>
</ul>
<h1><a class="anchor" id="autotoc_md72"></a>
<h1><a class="anchor" id="autotoc_md76"></a>
Include Files</h1>
<p>At the top of your application file add <code>#include <a class="el" href="_nim_b_l_e_device_8h_source.html">NimBLEDevice.h</a></code>, this is the only header required and provides access to all classes. <br />
<br />
</p>
<h1><a class="anchor" id="autotoc_md73"></a>
<h1><a class="anchor" id="autotoc_md77"></a>
Using the Library</h1>
<p>In order to perform any BLE tasks you must first initialize the library, this prepares the NimBLE stack to be ready for commands. <br />
</p>
@@ -112,7 +112,7 @@ Using the Library</h1>
<br />
</p>
<p><a class="anchor" id="creating-a-server"></a> </p>
<h1><a class="anchor" id="autotoc_md74"></a>
<h1><a class="anchor" id="autotoc_md78"></a>
Creating a Server</h1>
<p>BLE servers perform 2 tasks, they advertise their existence for clients to find them and they provide services which contain information for the connecting client. <br />
</p>
@@ -217,7 +217,7 @@ Creating a Server</h1>
<br />
</p>
<p><a class="anchor" id="creating-a-client"></a> </p>
<h1><a class="anchor" id="autotoc_md75"></a>
<h1><a class="anchor" id="autotoc_md79"></a>
Creating a Client</h1>
<p>BLE clients perform 2 tasks, they scan for advertising servers and form connections to them to read and write to their characteristics/descriptors.</p>
<p>After initializing the NimBLE stack we create a scan instance by calling <code><a class="el" href="class_nim_b_l_e_device.html#af93d92316454b051125460056368baec" title="Retrieve the Scan object that we use for scanning.">NimBLEDevice::getScan()</a></code>, this will create a <code><a class="el" href="class_nim_b_l_e_scan.html" title="Perform and manage BLE scans.">NimBLEScan</a></code> instance and return a pointer to it. <br />