This commit is contained in:
h2zero
2025-02-28 22:02:02 +00:00
parent 6c565b1147
commit c28bba83ab
168 changed files with 668 additions and 579 deletions
+2 -2
View File
@@ -25,7 +25,7 @@
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">esp-nimble-cpp<span id="projectnumber">&#160;2.2.0</span>
<div id="projectname">esp-nimble-cpp<span id="projectnumber">&#160;2.2.1</span>
</div>
</td>
</tr>
@@ -122,7 +122,7 @@ Only retrieve the services and characteristics needed</h1>
</p>
<h1><a class="anchor" id="check-return-values"></a>
Check return values</h1>
<p>Many user issues can be avoided by checking if a function returned successfully, by either testing for true/false such as when calling <code><a class="el" href="class_nim_b_l_e_client.html#a27e53c3746bc2d20ea7cfcea1a123cbf" title="Connect to a BLE Server by address.">NimBLEClient::connect</a></code>, <br />
<p>Many user issues can be avoided by checking if a function returned successfully, by either testing for true/false such as when calling <code><a class="el" href="class_nim_b_l_e_client.html#a2b49bc73802bf716cf3df3b5a93f0543" title="Connect to an advertising device.">NimBLEClient::connect</a></code>, <br />
or nullptr such as when calling <code><a class="el" href="class_nim_b_l_e_client.html#ae22379ab10bd82932d2303fb3753c366" title="Get the service BLE Remote Service instance corresponding to the uuid.">NimBLEClient::getService</a></code>. The latter being a must, as calling a method on a nullptr will surely result in a crash. <br />
Most of the functions in this library return something that should be checked before proceeding. <br />
<br />