esp-nimble-cpp/_nim_b_l_e_device_8h_source.html

462 lines
82 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>esp-nimble-cpp: /github/workspace/src/NimBLEDevice.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">esp-nimble-cpp<span id="projectnumber">&#160;2.0.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('_nim_b_l_e_device_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">NimBLEDevice.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Copyright 2020-2024 Ryan Powell &lt;ryan@nable-embedded.io&gt; and</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * esp-nimble-cpp, NimBLE-Arduino contributors.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * limitations under the License.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> */</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#ifndef NIMBLE_CPP_DEVICE_H_</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#define NIMBLE_CPP_DEVICE_H_</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &quot;<a class="code" href="nimconfig_8h.html">nimconfig.h</a>&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#if defined(CONFIG_BT_ENABLED)</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor"># ifdef ESP_PLATFORM</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor"># ifndef CONFIG_IDF_TARGET_ESP32P4</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor"># include &lt;esp_bt.h&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor"># if defined(CONFIG_NIMBLE_CPP_IDF)</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor"># include &lt;host/ble_gap.h&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor"># else</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor"># include &lt;nimble/nimble/host/include/host/ble_gap.h&gt;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="comment">/**** FIX COMPILATION ****/</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor"># undef min</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="preprocessor"># undef max</span></div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="comment">/**************************/</span></div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="preprocessor"># include &lt;string&gt;</span></div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span><span class="preprocessor"># include &lt;vector&gt;</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span><span class="preprocessor"># include &lt;array&gt;</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>;</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_scan.html">NimBLEScan</a>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="preprocessor"># else</span></div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_server.html">NimBLEServer</a>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) || defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_conn_info.html">NimBLEConnInfo</a>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="preprocessor"># define BLEDevice NimBLEDevice</span></div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span><span class="preprocessor"># define BLEClient NimBLEClient</span></div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="preprocessor"># define BLERemoteService NimBLERemoteService</span></div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span><span class="preprocessor"># define BLERemoteCharacteristic NimBLERemoteCharacteristic</span></div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span><span class="preprocessor"># define BLERemoteDescriptor NimBLERemoteDescriptor</span></div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span><span class="preprocessor"># define BLEAdvertisedDevice NimBLEAdvertisedDevice</span></div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span><span class="preprocessor"># define BLEScan NimBLEScan</span></div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="preprocessor"># define BLEUUID NimBLEUUID</span></div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span><span class="preprocessor"># define BLEAddress NimBLEAddress</span></div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="preprocessor"># define BLEUtils NimBLEUtils</span></div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span><span class="preprocessor"># define BLEClientCallbacks NimBLEClientCallbacks</span></div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="preprocessor"># define BLEAdvertisedDeviceCallbacks NimBLEScanCallbacks</span></div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span><span class="preprocessor"># define BLEScanResults NimBLEScanResults</span></div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span><span class="preprocessor"># define BLEServer NimBLEServer</span></div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span><span class="preprocessor"># define BLEService NimBLEService</span></div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span><span class="preprocessor"># define BLECharacteristic NimBLECharacteristic</span></div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span><span class="preprocessor"># define BLEAdvertising NimBLEAdvertising</span></div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span><span class="preprocessor"># define BLEServerCallbacks NimBLEServerCallbacks</span></div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span><span class="preprocessor"># define BLECharacteristicCallbacks NimBLECharacteristicCallbacks</span></div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span><span class="preprocessor"># define BLEAdvertisementData NimBLEAdvertisementData</span></div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="preprocessor"># define BLEDescriptor NimBLEDescriptor</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span><span class="preprocessor"># define BLE2904 NimBLE2904</span></div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span><span class="preprocessor"># define BLEDescriptorCallbacks NimBLEDescriptorCallbacks</span></div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span><span class="preprocessor"># define BLEBeacon NimBLEBeacon</span></div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span><span class="preprocessor"># define BLEEddystoneTLM NimBLEEddystoneTLM</span></div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="preprocessor"># define BLEEddystoneURL NimBLEEddystoneURL</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span><span class="preprocessor"># define BLEConnInfo NimBLEConnInfo</span></div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="preprocessor"># ifdef CONFIG_BT_NIMBLE_MAX_CONNECTIONS</span></div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span><span class="preprocessor"># define NIMBLE_MAX_CONNECTIONS CONFIG_BT_NIMBLE_MAX_CONNECTIONS</span></div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span><span class="preprocessor"># else</span></div>
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span><span class="preprocessor"># define NIMBLE_MAX_CONNECTIONS CONFIG_NIMBLE_MAX_CONNECTIONS</span></div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="keyword">typedef</span> int (*gap_event_handler)(ble_gap_event* event, <span class="keywordtype">void</span>* arg);</div>
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> </div>
<div class="foldopen" id="foldopen00109" data-start="{" data-end="};">
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_device.html"> 109</a></span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_device.html">NimBLEDevice</a> {</div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a2e8bb71daabbffd9eab8787493a45ce7">init</a>(<span class="keyword">const</span> std::string&amp; deviceName);</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a66362258c033860e8448032913be355f">deinit</a>(<span class="keywordtype">bool</span> clearAll = <span class="keyword">false</span>);</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#aaa64b6baff54c010eb8b4d0ba338cc01">setDeviceName</a>(<span class="keyword">const</span> std::string&amp; deviceName);</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a425561f1e23856756ab9c1c330da5737">isInitialized</a>();</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code hl_function" href="class_nim_b_l_e_device.html#a77f9f343143d4f074ffb545dd14cbb2b">getAddress</a>();</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">static</span> std::string <a class="code hl_function" href="class_nim_b_l_e_device.html#abf8c494b54d9f0c9466c80f25dbdd961">toString</a>();</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#aabc68166b6dd4a744a98f94e569f37db">whiteListAdd</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; address);</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a81abbad5e371fe1cdd91c002b42cc654">whiteListRemove</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; address);</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ae51e2d4d6169a61133178a1b0d6b5b45">onWhiteList</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; address);</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ab28cc2ec59fc9e62d05826633f53d2a0">getWhiteListCount</a>();</div>
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code hl_function" href="class_nim_b_l_e_device.html#a4a2229e9e517b84773e65c75124b0789">getWhiteListAddress</a>(<span class="keywordtype">size_t</span> index);</div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a31acb43c150014f06bad74b57c2335ff">setOwnAddrType</a>(uint8_t type);</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a0f6521729222f9e55e40325824786070">setOwnAddr</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; addr);</div>
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a0f6521729222f9e55e40325824786070">setOwnAddr</a>(<span class="keyword">const</span> uint8_t* addr);</div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keyword">static</span> <span class="keywordtype">void</span> setScanDuplicateCacheSize(uint16_t cacheSize);</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">static</span> <span class="keywordtype">void</span> setScanFilterMode(uint8_t type);</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a179d1199badd67464cab921672a44405">setCustomGapHandler</a>(gap_event_handler handler);</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#aa8e340c02418771ce72dec758d560938">setSecurityAuth</a>(<span class="keywordtype">bool</span> bonding, <span class="keywordtype">bool</span> mitm, <span class="keywordtype">bool</span> sc);</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#aa8e340c02418771ce72dec758d560938">setSecurityAuth</a>(uint8_t auth);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ab9fee9e810d5fa18bc8a37053eb9b5d0">setSecurityIOCap</a>(uint8_t iocap);</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ab0a29a11f71d3ba32645c096067a853b">setSecurityInitKey</a>(uint8_t initKey);</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ab769a5f5afb3ee486527d41b8c445566">setSecurityRespKey</a>(uint8_t respKey);</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ab62da4d606355b20539e37e881f4044d">setSecurityPasskey</a>(uint32_t passKey);</div>
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <span class="keyword">static</span> uint32_t <a class="code hl_function" href="class_nim_b_l_e_device.html#aa03937eadda020643b536c5d08174d3a">getSecurityPasskey</a>();</div>
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a8b6b4bedfe37725ed9c20e91a3470005">startSecurity</a>(uint16_t connHandle, <span class="keywordtype">int</span>* rcPtr = <span class="keyword">nullptr</span>);</div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a43b83de25635b69cfd663a7f0e7784d6">setMTU</a>(uint16_t mtu);</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keyword">static</span> uint16_t <a class="code hl_function" href="class_nim_b_l_e_device.html#a5520cf3f544d571636eed162de394ec2">getMTU</a>();</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a1c07c41733730754fd31efae5a43f085">onReset</a>(<span class="keywordtype">int</span> reason);</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a01737196c77959a03964504ee0b48f4d">onSync</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ab4771de8c0805836f0e7059199d56411">host_task</a>(<span class="keywordtype">void</span>* param);</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#ae59445e712b468349099befca7a7be16">getPower</a>();</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a2b45ce364bf3ee69959389c8cc70249c">setPower</a>(int8_t dbm);</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span><span class="preprocessor"># ifdef ESP_PLATFORM</span></div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span><span class="preprocessor"># ifndef CONFIG_IDF_TARGET_ESP32P4</span></div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">static</span> esp_power_level_t getPowerLevel(esp_ble_power_type_t powerType = ESP_BLE_PWR_TYPE_DEFAULT);</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> setPowerLevel(esp_power_level_t powerLevel, esp_ble_power_type_t powerType = ESP_BLE_PWR_TYPE_DEFAULT);</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a0e021958df2f2dbf40e52b9022c37594">setDefaultPhy</a>(uint8_t txPhyMask, uint8_t rxPhyMask);</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> </div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_scan.html">NimBLEScan</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#af93d92316454b051125460056368baec">getScan</a>();</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_server.html">NimBLEServer</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#a4d9780d0b5fafc279483822af802a508">createServer</a>();</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_server.html">NimBLEServer</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#a41d4cc7c85cba0721c6649b001b31b4d">getServer</a>();</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL) || defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#aff35384524ab80a19ce1ef23fdcd970b">injectConfirmPasskey</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_conn_info.html">NimBLEConnInfo</a>&amp; peerInfo, <span class="keywordtype">bool</span> accept);</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a5071168b3bda69aa4457a43473ad7a96">injectPassKey</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_conn_info.html">NimBLEConnInfo</a>&amp; peerInfo, uint32_t pin);</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#aa994b01b2b5bb9f677f3cffb2f05d140">getAdvertising</a>();</div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a181ee3b2b143e50e216fc2728194ff85">startAdvertising</a>(uint8_t instId, <span class="keywordtype">int</span> duration = 0, <span class="keywordtype">int</span> maxEvents = 0);</div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a3c251b1d5c651ab9ef9b4819f79c1629">stopAdvertising</a>(uint8_t instId);</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a3c251b1d5c651ab9ef9b4819f79c1629">stopAdvertising</a>();</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span><span class="preprocessor"># if !CONFIG_BT_NIMBLE_EXT_ADV || defined(_DOXYGEN_)</span></div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#aa994b01b2b5bb9f677f3cffb2f05d140">getAdvertising</a>();</div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a181ee3b2b143e50e216fc2728194ff85">startAdvertising</a>(uint32_t duration = 0);</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a3c251b1d5c651ab9ef9b4819f79c1629">stopAdvertising</a>();</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#a010b12177917f33e7d3633736c0cc553">createClient</a>();</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#a010b12177917f33e7d3633736c0cc553">createClient</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; peerAddress);</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a83aa0a3d9d57358d35082a442edf8549">deleteClient</a>(<a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>* pClient);</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#a9c15d6b767091fae4412428436827c4e">getClientByHandle</a>(uint16_t connHandle);</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#afc7060413706ec7217ea9add4b169117">getClientByPeerAddress</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; peerAddress);</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code hl_function" href="class_nim_b_l_e_device.html#a10aec48b56ef404f42ade96d6244b312">getDisconnectedClient</a>();</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a0944f3f6eca16ed4b7fd96d88b2906d9">getCreatedClientCount</a>();</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> <span class="keyword">static</span> std::vector&lt;NimBLEClient*&gt; <a class="code hl_function" href="class_nim_b_l_e_device.html#acb098c56b7d08636e1745052eb184fb2">getConnectedClients</a>();</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> </div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL) || defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a20fc979ec9dbad5cce7f73e41b2e422e">deleteBond</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; address);</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a7fe0f568c17130150660e6307851be48">getNumBonds</a>();</div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a16bf4f5394735ed8d7f0bb32ca5d269a">isBonded</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; address);</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_device.html#a17fe75ad9d4f3d8cfd876b4a9bf70bb0">deleteAllBonds</a>();</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code hl_function" href="class_nim_b_l_e_device.html#ac7f090f4b1a2d593f38b20859e071f0c">getBondedAddress</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> </div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> m_synced;</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> <span class="keyword">static</span> <span class="keywordtype">bool</span> m_initialized;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keyword">static</span> uint32_t m_passkey;</div>
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keyword">static</span> ble_gap_event_listener m_listener;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keyword">static</span> uint8_t m_ownAddrType;</div>
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> <span class="keyword">static</span> std::vector&lt;NimBLEAddress&gt; m_whiteList;</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> </div>
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_scan.html">NimBLEScan</a>* m_pScan;</div>
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> </div>
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_server.html">NimBLEServer</a>* m_pServer;</div>
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> </div>
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a>* m_bleAdvertising;</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span><span class="preprocessor"># else</span></div>
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <span class="keyword">static</span> <a class="code hl_class" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>* m_bleAdvertising;</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> </div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> <span class="keyword">static</span> std::array&lt;NimBLEClient*, NIMBLE_MAX_CONNECTIONS&gt; m_pClients;</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> </div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"> 230</span><span class="preprocessor"># ifdef ESP_PLATFORM</span></div>
<div class="line"><a id="l00231" name="l00231"></a><span class="lineno"> 231</span><span class="preprocessor"># ifdef CONFIG_BTDM_BLE_SCAN_DUPL</span></div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"> 232</span> <span class="keyword">static</span> uint16_t m_scanDuplicateSize;</div>
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span> <span class="keyword">static</span> uint8_t m_scanFilterMode;</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> </div>
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_client.html">NimBLEClient</a>;</div>
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> </div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_scan.html">NimBLEScan</a>;</div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> </div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_server.html">NimBLEServer</a>;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a>;</div>
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"> 249</span> </div>
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>;</div>
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a>;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_ext_advertisement.html">NimBLEExtAdvertisement</a>;</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span>};</div>
</div>
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> </div>
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span><span class="preprocessor"># include &quot;NimBLEClient.h&quot;</span></div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span><span class="preprocessor"># include &quot;NimBLERemoteService.h&quot;</span></div>
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span><span class="preprocessor"># include &quot;NimBLERemoteCharacteristic.h&quot;</span></div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span><span class="preprocessor"># include &quot;NimBLERemoteDescriptor.h&quot;</span></div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> </div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span><span class="preprocessor"># include &quot;NimBLEScan.h&quot;</span></div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> </div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span><span class="preprocessor"># include &quot;NimBLEServer.h&quot;</span></div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span><span class="preprocessor"># include &quot;NimBLEService.h&quot;</span></div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span><span class="preprocessor"># include &quot;NimBLECharacteristic.h&quot;</span></div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span><span class="preprocessor"># include &quot;NimBLEDescriptor.h&quot;</span></div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> </div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span><span class="preprocessor"># include &quot;NimBLEExtAdvertising.h&quot;</span></div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span><span class="preprocessor"># else</span></div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span><span class="preprocessor"># include &quot;NimBLEAdvertising.h&quot;</span></div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> </div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span><span class="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL) || defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span><span class="preprocessor"># include &quot;NimBLEConnInfo.h&quot;</span></div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> </div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span><span class="preprocessor"># include &quot;NimBLEUtils.h&quot;</span></div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> </div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span><span class="preprocessor">#endif </span><span class="comment">// CONFIG_BT_ENABLED</span></div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span><span class="preprocessor">#endif </span><span class="comment">// NIMBLE_CPP_DEVICE_H_</span></div>
<div class="ttc" id="aclass_nim_b_l_e_address_html"><div class="ttname"><a href="class_nim_b_l_e_address.html">NimBLEAddress</a></div><div class="ttdoc">A BLE device address.</div><div class="ttdef"><b>Definition</b> NimBLEAddress.h:41</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html"><div class="ttname"><a href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a></div><div class="ttdoc">Perform and manage BLE advertising.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertising.h:52</div></div>
<div class="ttc" id="aclass_nim_b_l_e_characteristic_html"><div class="ttname"><a href="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a></div><div class="ttdoc">The model of a BLE Characteristic.</div><div class="ttdef"><b>Definition</b> NimBLECharacteristic.h:40</div></div>
<div class="ttc" id="aclass_nim_b_l_e_client_html"><div class="ttname"><a href="class_nim_b_l_e_client.html">NimBLEClient</a></div><div class="ttdoc">A model of a BLE client.</div><div class="ttdef"><b>Definition</b> NimBLEClient.h:49</div></div>
<div class="ttc" id="aclass_nim_b_l_e_conn_info_html"><div class="ttname"><a href="class_nim_b_l_e_conn_info.html">NimBLEConnInfo</a></div><div class="ttdoc">Connection information.</div><div class="ttdef"><b>Definition</b> NimBLEConnInfo.h:32</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html"><div class="ttname"><a href="class_nim_b_l_e_device.html">NimBLEDevice</a></div><div class="ttdoc">A model of a BLE Device from which all the BLE roles are created.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.h:109</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a010b12177917f33e7d3633736c0cc553"><div class="ttname"><a href="class_nim_b_l_e_device.html#a010b12177917f33e7d3633736c0cc553">NimBLEDevice::createClient</a></div><div class="ttdeci">static NimBLEClient * createClient()</div><div class="ttdoc">Creates a new client object, each client can connect to 1 peripheral device.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:291</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a01737196c77959a03964504ee0b48f4d"><div class="ttname"><a href="class_nim_b_l_e_device.html#a01737196c77959a03964504ee0b48f4d">NimBLEDevice::onSync</a></div><div class="ttdeci">static void onSync(void)</div><div class="ttdoc">Host synced with controller, all clear to make calls to the stack.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:760</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a0944f3f6eca16ed4b7fd96d88b2906d9"><div class="ttname"><a href="class_nim_b_l_e_device.html#a0944f3f6eca16ed4b7fd96d88b2906d9">NimBLEDevice::getCreatedClientCount</a></div><div class="ttdeci">static size_t getCreatedClientCount()</div><div class="ttdoc">Get the number of created client objects.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:351</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a0e021958df2f2dbf40e52b9022c37594"><div class="ttname"><a href="class_nim_b_l_e_device.html#a0e021958df2f2dbf40e52b9022c37594">NimBLEDevice::setDefaultPhy</a></div><div class="ttdeci">static bool setDefaultPhy(uint8_t txPhyMask, uint8_t rxPhyMask)</div><div class="ttdoc">Set the preferred default phy to use for connections.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:733</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a0f6521729222f9e55e40325824786070"><div class="ttname"><a href="class_nim_b_l_e_device.html#a0f6521729222f9e55e40325824786070">NimBLEDevice::setOwnAddr</a></div><div class="ttdeci">static bool setOwnAddr(const NimBLEAddress &amp;addr)</div><div class="ttdoc">Set the device address to use.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1033</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a10aec48b56ef404f42ade96d6244b312"><div class="ttname"><a href="class_nim_b_l_e_device.html#a10aec48b56ef404f42ade96d6244b312">NimBLEDevice::getDisconnectedClient</a></div><div class="ttdeci">static NimBLEClient * getDisconnectedClient()</div><div class="ttdoc">Finds the first disconnected client available.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:396</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a16bf4f5394735ed8d7f0bb32ca5d269a"><div class="ttname"><a href="class_nim_b_l_e_device.html#a16bf4f5394735ed8d7f0bb32ca5d269a">NimBLEDevice::isBonded</a></div><div class="ttdeci">static bool isBonded(const NimBLEAddress &amp;address)</div><div class="ttdoc">Checks if a peer device is bonded.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:595</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a179d1199badd67464cab921672a44405"><div class="ttname"><a href="class_nim_b_l_e_device.html#a179d1199badd67464cab921672a44405">NimBLEDevice::setCustomGapHandler</a></div><div class="ttdeci">static bool setCustomGapHandler(gap_event_handler handler)</div><div class="ttdoc">Set a custom callback for gap events.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1207</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a17fe75ad9d4f3d8cfd876b4a9bf70bb0"><div class="ttname"><a href="class_nim_b_l_e_device.html#a17fe75ad9d4f3d8cfd876b4a9bf70bb0">NimBLEDevice::deleteAllBonds</a></div><div class="ttdeci">static bool deleteAllBonds()</div><div class="ttdoc">Deletes all bonding information.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:572</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a181ee3b2b143e50e216fc2728194ff85"><div class="ttname"><a href="class_nim_b_l_e_device.html#a181ee3b2b143e50e216fc2728194ff85">NimBLEDevice::startAdvertising</a></div><div class="ttdeci">static bool startAdvertising(uint8_t instId, int duration=0, int maxEvents=0)</div><div class="ttdoc">Convenience function to begin advertising.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:167</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a1c07c41733730754fd31efae5a43f085"><div class="ttname"><a href="class_nim_b_l_e_device.html#a1c07c41733730754fd31efae5a43f085">NimBLEDevice::onReset</a></div><div class="ttdeci">static void onReset(int reason)</div><div class="ttdoc">Host reset, we pass the message so we don't make calls until re-synced.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:747</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a20fc979ec9dbad5cce7f73e41b2e422e"><div class="ttname"><a href="class_nim_b_l_e_device.html#a20fc979ec9dbad5cce7f73e41b2e422e">NimBLEDevice::deleteBond</a></div><div class="ttdeci">static bool deleteBond(const NimBLEAddress &amp;address)</div><div class="ttdoc">Deletes a peer bond.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:586</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a2b45ce364bf3ee69959389c8cc70249c"><div class="ttname"><a href="class_nim_b_l_e_device.html#a2b45ce364bf3ee69959389c8cc70249c">NimBLEDevice::setPower</a></div><div class="ttdeci">static bool setPower(int8_t dbm)</div><div class="ttdoc">Set the transmission power.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:467</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a2e8bb71daabbffd9eab8787493a45ce7"><div class="ttname"><a href="class_nim_b_l_e_device.html#a2e8bb71daabbffd9eab8787493a45ce7">NimBLEDevice::init</a></div><div class="ttdeci">static bool init(const std::string &amp;deviceName)</div><div class="ttdoc">Initialize the BLE environment.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:819</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a31acb43c150014f06bad74b57c2335ff"><div class="ttname"><a href="class_nim_b_l_e_device.html#a31acb43c150014f06bad74b57c2335ff">NimBLEDevice::setOwnAddrType</a></div><div class="ttdeci">static bool setOwnAddrType(uint8_t type)</div><div class="ttdoc">Sets the address type to use.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1002</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a3c251b1d5c651ab9ef9b4819f79c1629"><div class="ttname"><a href="class_nim_b_l_e_device.html#a3c251b1d5c651ab9ef9b4819f79c1629">NimBLEDevice::stopAdvertising</a></div><div class="ttdeci">static bool stopAdvertising()</div><div class="ttdoc">Convenience function to stop all advertising.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:207</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a41d4cc7c85cba0721c6649b001b31b4d"><div class="ttname"><a href="class_nim_b_l_e_device.html#a41d4cc7c85cba0721c6649b001b31b4d">NimBLEDevice::getServer</a></div><div class="ttdeci">static NimBLEServer * getServer()</div><div class="ttdoc">Get the instance of the server.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:137</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a425561f1e23856756ab9c1c330da5737"><div class="ttname"><a href="class_nim_b_l_e_device.html#a425561f1e23856756ab9c1c330da5737">NimBLEDevice::isInitialized</a></div><div class="ttdeci">static bool isInitialized()</div><div class="ttdoc">Check if the initialization is complete.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:968</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a43b83de25635b69cfd663a7f0e7784d6"><div class="ttname"><a href="class_nim_b_l_e_device.html#a43b83de25635b69cfd663a7f0e7784d6">NimBLEDevice::setMTU</a></div><div class="ttdeci">static bool setMTU(uint16_t mtu)</div><div class="ttdoc">Setup local mtu that will be used to negotiate mtu during request from client peer.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:532</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a4a2229e9e517b84773e65c75124b0789"><div class="ttname"><a href="class_nim_b_l_e_device.html#a4a2229e9e517b84773e65c75124b0789">NimBLEDevice::getWhiteListAddress</a></div><div class="ttdeci">static NimBLEAddress getWhiteListAddress(size_t index)</div><div class="ttdoc">Gets the address at the vector index.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:705</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a4d9780d0b5fafc279483822af802a508"><div class="ttname"><a href="class_nim_b_l_e_device.html#a4d9780d0b5fafc279483822af802a508">NimBLEDevice::createServer</a></div><div class="ttdeci">static NimBLEServer * createServer()</div><div class="ttdoc">Create an instance of a server.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:122</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a5071168b3bda69aa4457a43473ad7a96"><div class="ttname"><a href="class_nim_b_l_e_device.html#a5071168b3bda69aa4457a43473ad7a96">NimBLEDevice::injectPassKey</a></div><div class="ttdeci">static bool injectPassKey(const NimBLEConnInfo &amp;peerInfo, uint32_t pin)</div><div class="ttdoc">Inject the provided passkey into the Security Manager.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1164</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a5520cf3f544d571636eed162de394ec2"><div class="ttname"><a href="class_nim_b_l_e_device.html#a5520cf3f544d571636eed162de394ec2">NimBLEDevice::getMTU</a></div><div class="ttdeci">static uint16_t getMTU()</div><div class="ttdoc">Get local MTU value set.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:545</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a66362258c033860e8448032913be355f"><div class="ttname"><a href="class_nim_b_l_e_device.html#a66362258c033860e8448032913be355f">NimBLEDevice::deinit</a></div><div class="ttdeci">static bool deinit(bool clearAll=false)</div><div class="ttdoc">Shutdown the NimBLE stack/controller.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:913</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a77f9f343143d4f074ffb545dd14cbb2b"><div class="ttname"><a href="class_nim_b_l_e_device.html#a77f9f343143d4f074ffb545dd14cbb2b">NimBLEDevice::getAddress</a></div><div class="ttdeci">static NimBLEAddress getAddress()</div><div class="ttdoc">Get our device address.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:980</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a7fe0f568c17130150660e6307851be48"><div class="ttname"><a href="class_nim_b_l_e_device.html#a7fe0f568c17130150660e6307851be48">NimBLEDevice::getNumBonds</a></div><div class="ttdeci">static int getNumBonds()</div><div class="ttdoc">Gets the number of bonded peers stored.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:557</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a81abbad5e371fe1cdd91c002b42cc654"><div class="ttname"><a href="class_nim_b_l_e_device.html#a81abbad5e371fe1cdd91c002b42cc654">NimBLEDevice::whiteListRemove</a></div><div class="ttdeci">static bool whiteListRemove(const NimBLEAddress &amp;address)</div><div class="ttdoc">Remove a peer address from the whitelist.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:674</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a83aa0a3d9d57358d35082a442edf8549"><div class="ttname"><a href="class_nim_b_l_e_device.html#a83aa0a3d9d57358d35082a442edf8549">NimBLEDevice::deleteClient</a></div><div class="ttdeci">static bool deleteClient(NimBLEClient *pClient)</div><div class="ttdoc">Delete the client object and remove it from the list. Checks if it is connected or trying to connect ...</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:318</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a8b6b4bedfe37725ed9c20e91a3470005"><div class="ttname"><a href="class_nim_b_l_e_device.html#a8b6b4bedfe37725ed9c20e91a3470005">NimBLEDevice::startSecurity</a></div><div class="ttdeci">static bool startSecurity(uint16_t connHandle, int *rcPtr=nullptr)</div><div class="ttdoc">Start the connection securing and authorization for this connection.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1146</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a9c15d6b767091fae4412428436827c4e"><div class="ttname"><a href="class_nim_b_l_e_device.html#a9c15d6b767091fae4412428436827c4e">NimBLEDevice::getClientByHandle</a></div><div class="ttdeci">static NimBLEClient * getClientByHandle(uint16_t connHandle)</div><div class="ttdoc">Get a reference to a client by connection handle.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:367</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_aa03937eadda020643b536c5d08174d3a"><div class="ttname"><a href="class_nim_b_l_e_device.html#aa03937eadda020643b536c5d08174d3a">NimBLEDevice::getSecurityPasskey</a></div><div class="ttdeci">static uint32_t getSecurityPasskey()</div><div class="ttdoc">Get the current passkey used for pairing.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1136</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_aa8e340c02418771ce72dec758d560938"><div class="ttname"><a href="class_nim_b_l_e_device.html#aa8e340c02418771ce72dec758d560938">NimBLEDevice::setSecurityAuth</a></div><div class="ttdeci">static void setSecurityAuth(bool bonding, bool mitm, bool sc)</div><div class="ttdoc">Set the authorization mode for this device.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1063</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_aa994b01b2b5bb9f677f3cffb2f05d140"><div class="ttname"><a href="class_nim_b_l_e_device.html#aa994b01b2b5bb9f677f3cffb2f05d140">NimBLEDevice::getAdvertising</a></div><div class="ttdeci">static NimBLEExtAdvertising * getAdvertising()</div><div class="ttdoc">Get the instance of the extended advertising object.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:152</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_aaa64b6baff54c010eb8b4d0ba338cc01"><div class="ttname"><a href="class_nim_b_l_e_device.html#aaa64b6baff54c010eb8b4d0ba338cc01">NimBLEDevice::setDeviceName</a></div><div class="ttdeci">static bool setDeviceName(const std::string &amp;deviceName)</div><div class="ttdoc">Set the BLEDevice name.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1192</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_aabc68166b6dd4a744a98f94e569f37db"><div class="ttname"><a href="class_nim_b_l_e_device.html#aabc68166b6dd4a744a98f94e569f37db">NimBLEDevice::whiteListAdd</a></div><div class="ttdeci">static bool whiteListAdd(const NimBLEAddress &amp;address)</div><div class="ttdoc">Add a peer address to the whitelist.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:655</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ab0a29a11f71d3ba32645c096067a853b"><div class="ttname"><a href="class_nim_b_l_e_device.html#ab0a29a11f71d3ba32645c096067a853b">NimBLEDevice::setSecurityInitKey</a></div><div class="ttdeci">static void setSecurityInitKey(uint8_t initKey)</div><div class="ttdoc">If we are the initiator of the security procedure this sets the keys we will distribute.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1107</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ab28cc2ec59fc9e62d05826633f53d2a0"><div class="ttname"><a href="class_nim_b_l_e_device.html#ab28cc2ec59fc9e62d05826633f53d2a0">NimBLEDevice::getWhiteListCount</a></div><div class="ttdeci">static size_t getWhiteListCount()</div><div class="ttdoc">Gets the count of addresses in the whitelist.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:696</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ab4771de8c0805836f0e7059199d56411"><div class="ttname"><a href="class_nim_b_l_e_device.html#ab4771de8c0805836f0e7059199d56411">NimBLEDevice::host_task</a></div><div class="ttdeci">static void host_task(void *param)</div><div class="ttdoc">The main host task.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:809</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ab62da4d606355b20539e37e881f4044d"><div class="ttname"><a href="class_nim_b_l_e_device.html#ab62da4d606355b20539e37e881f4044d">NimBLEDevice::setSecurityPasskey</a></div><div class="ttdeci">static void setSecurityPasskey(uint32_t passKey)</div><div class="ttdoc">Set the passkey the server will ask for when pairing.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1128</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ab769a5f5afb3ee486527d41b8c445566"><div class="ttname"><a href="class_nim_b_l_e_device.html#ab769a5f5afb3ee486527d41b8c445566">NimBLEDevice::setSecurityRespKey</a></div><div class="ttdeci">static void setSecurityRespKey(uint8_t respKey)</div><div class="ttdoc">Set the keys we are willing to accept during pairing.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1120</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ab9fee9e810d5fa18bc8a37053eb9b5d0"><div class="ttname"><a href="class_nim_b_l_e_device.html#ab9fee9e810d5fa18bc8a37053eb9b5d0">NimBLEDevice::setSecurityIOCap</a></div><div class="ttdeci">static void setSecurityIOCap(uint8_t iocap)</div><div class="ttdoc">Set the Input/Output capabilities of this device.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1094</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_abf8c494b54d9f0c9466c80f25dbdd961"><div class="ttname"><a href="class_nim_b_l_e_device.html#abf8c494b54d9f0c9466c80f25dbdd961">NimBLEDevice::toString</a></div><div class="ttdeci">static std::string toString()</div><div class="ttdoc">Return a string representation of the address of this device.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1223</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ac7f090f4b1a2d593f38b20859e071f0c"><div class="ttname"><a href="class_nim_b_l_e_device.html#ac7f090f4b1a2d593f38b20859e071f0c">NimBLEDevice::getBondedAddress</a></div><div class="ttdeci">static NimBLEAddress getBondedAddress(int index)</div><div class="ttdoc">Get the address of a bonded peer device by index.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:619</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_acb098c56b7d08636e1745052eb184fb2"><div class="ttname"><a href="class_nim_b_l_e_device.html#acb098c56b7d08636e1745052eb184fb2">NimBLEDevice::getConnectedClients</a></div><div class="ttdeci">static std::vector&lt; NimBLEClient * &gt; getConnectedClients()</div><div class="ttdoc">Get a list of connected clients.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:410</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ae51e2d4d6169a61133178a1b0d6b5b45"><div class="ttname"><a href="class_nim_b_l_e_device.html#ae51e2d4d6169a61133178a1b0d6b5b45">NimBLEDevice::onWhiteList</a></div><div class="ttdeci">static bool onWhiteList(const NimBLEAddress &amp;address)</div><div class="ttdoc">Checks if a peer device is whitelisted.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:640</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ae59445e712b468349099befca7a7be16"><div class="ttname"><a href="class_nim_b_l_e_device.html#ae59445e712b468349099befca7a7be16">NimBLEDevice::getPower</a></div><div class="ttdeci">static int getPower()</div><div class="ttdoc">Get the transmission power.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:496</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_af93d92316454b051125460056368baec"><div class="ttname"><a href="class_nim_b_l_e_device.html#af93d92316454b051125460056368baec">NimBLEDevice::getScan</a></div><div class="ttdeci">static NimBLEScan * getScan()</div><div class="ttdoc">Retrieve the Scan object that we use for scanning.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:222</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_afc7060413706ec7217ea9add4b169117"><div class="ttname"><a href="class_nim_b_l_e_device.html#afc7060413706ec7217ea9add4b169117">NimBLEDevice::getClientByPeerAddress</a></div><div class="ttdeci">static NimBLEClient * getClientByPeerAddress(const NimBLEAddress &amp;peerAddress)</div><div class="ttdoc">Get a reference to a client by peer address.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:382</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_aff35384524ab80a19ce1ef23fdcd970b"><div class="ttname"><a href="class_nim_b_l_e_device.html#aff35384524ab80a19ce1ef23fdcd970b">NimBLEDevice::injectConfirmPasskey</a></div><div class="ttdeci">static bool injectConfirmPasskey(const NimBLEConnInfo &amp;peerInfo, bool accept)</div><div class="ttdoc">Inject the provided numeric comparison response into the Security Manager.</div><div class="ttdef"><b>Definition</b> NimBLEDevice.cpp:1176</div></div>
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html">NimBLEExtAdvertisement</a></div><div class="ttdoc">Extended advertisement data.</div><div class="ttdef"><b>Definition</b> NimBLEExtAdvertising.h:46</div></div>
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a></div><div class="ttdoc">Extended advertising class.</div><div class="ttdef"><b>Definition</b> NimBLEExtAdvertising.h:111</div></div>
<div class="ttc" id="aclass_nim_b_l_e_scan_html"><div class="ttname"><a href="class_nim_b_l_e_scan.html">NimBLEScan</a></div><div class="ttdoc">Perform and manage BLE scans.</div><div class="ttdef"><b>Definition</b> NimBLEScan.h:67</div></div>
<div class="ttc" id="aclass_nim_b_l_e_server_html"><div class="ttname"><a href="class_nim_b_l_e_server.html">NimBLEServer</a></div><div class="ttdoc">The model of a BLE server.</div><div class="ttdef"><b>Definition</b> NimBLEServer.h:60</div></div>
<div class="ttc" id="animconfig_8h_html"><div class="ttname"><a href="nimconfig_8h.html">nimconfig.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><b>NimBLEDevice.h</b></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8 </li>
</ul>
</div>
</body>
</html>