esp-nimble-cpp/_nim_b_l_e_device_8h_source.html

366 lines
63 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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2022-01-15 23:23:57 +01:00
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2022-01-15 23:23:57 +01:00
<title>esp-nimble-cpp: K:/Users/Ryan/Desktop/thermo-git/components/esp-nimble-cpp/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 style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
2022-01-15 23:23:57 +01:00
<div id="projectname">esp-nimble-cpp
&#160;<span id="projectnumber">1.3.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-01-15 23:23:57 +01:00
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</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:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(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">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</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 name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * NimBLEDevice.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Created: on Jan 24 2020</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Author H2zero</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Originally:</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * BLEDevice.h</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Created on: Mar 16, 2017</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * Author: kolban</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#ifndef MAIN_NIMBLEDEVICE_H_</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#define MAIN_NIMBLEDEVICE_H_</span></div>
2022-01-15 23:23:57 +01:00
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="nimconfig_8h.html">nimconfig.h</a>&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_ENABLED)</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160; </div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;NimBLEScan.h&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160; </div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#include &quot;NimBLEAdvertising.h&quot;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160; </div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &quot;NimBLEClient.h&quot;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;<span class="preprocessor">#include &quot;NimBLEServer.h&quot;</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#include &quot;NimBLEUtils.h&quot;</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#include &quot;NimBLESecurity.h&quot;</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#include &quot;NimBLEAddress.h&quot;</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#ifdef ESP_PLATFORM</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;<span class="preprocessor"># include &quot;esp_bt.h&quot;</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;<span class="preprocessor">#include &lt;list&gt;</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;<span class="preprocessor">#define BLEDevice NimBLEDevice</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160;<span class="preprocessor">#define BLEClient NimBLEClient</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;<span class="preprocessor">#define BLERemoteService NimBLERemoteService</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="preprocessor">#define BLERemoteCharacteristic NimBLERemoteCharacteristic</span></div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160;<span class="preprocessor">#define BLERemoteDescriptor NimBLERemoteDescriptor</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="preprocessor">#define BLEAdvertisedDevice NimBLEAdvertisedDevice</span></div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;<span class="preprocessor">#define BLEScan NimBLEScan</span></div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160;<span class="preprocessor">#define BLEUUID NimBLEUUID</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160;<span class="preprocessor">#define BLESecurity NimBLESecurity</span></div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;<span class="preprocessor">#define BLESecurityCallbacks NimBLESecurityCallbacks</span></div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="preprocessor">#define BLEAddress NimBLEAddress</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160;<span class="preprocessor">#define BLEUtils NimBLEUtils</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160;<span class="preprocessor">#define BLEClientCallbacks NimBLEClientCallbacks</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;<span class="preprocessor">#define BLEAdvertisedDeviceCallbacks NimBLEAdvertisedDeviceCallbacks</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="preprocessor">#define BLEScanResults NimBLEScanResults</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="preprocessor">#define BLEServer NimBLEServer</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor">#define BLEService NimBLEService</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;<span class="preprocessor">#define BLECharacteristic NimBLECharacteristic</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">#define BLEAdvertising NimBLEAdvertising</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="preprocessor">#define BLEServerCallbacks NimBLEServerCallbacks</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#define BLECharacteristicCallbacks NimBLECharacteristicCallbacks</span></div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160;<span class="preprocessor">#define BLEAdvertisementData NimBLEAdvertisementData</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="preprocessor">#define BLEDescriptor NimBLEDescriptor</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="preprocessor">#define BLE2902 NimBLE2902</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160;<span class="preprocessor">#define BLE2904 NimBLE2904</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;<span class="preprocessor">#define BLEDescriptorCallbacks NimBLEDescriptorCallbacks</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160;<span class="preprocessor">#define BLEBeacon NimBLEBeacon</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;<span class="preprocessor">#define BLEEddystoneTLM NimBLEEddystoneTLM</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;<span class="preprocessor">#define BLEEddystoneURL NimBLEEddystoneURL</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160;<span class="preprocessor">#ifdef CONFIG_BT_NIMBLE_MAX_CONNECTIONS</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160;<span class="preprocessor">#define NIMBLE_MAX_CONNECTIONS CONFIG_BT_NIMBLE_MAX_CONNECTIONS</span></div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160;<span class="preprocessor">#define NIMBLE_MAX_CONNECTIONS CONFIG_NIMBLE_MAX_CONNECTIONS</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;<span class="keyword">typedef</span> int (*gap_event_handler)(ble_gap_event *event, <span class="keywordtype">void</span> *arg);</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> <span class="keywordtype">void</span> ble_store_config_init(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; </div>
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_device.html"> 92</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_nim_b_l_e_device.html">NimBLEDevice</a> {</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a674d2e68d4ba0e3f84d7993f9da7d15b">init</a>(<span class="keyword">const</span> std::string &amp;deviceName);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#ae95693ce0f5b8e784ea8e10834dd624c">deinit</a>(<span class="keywordtype">bool</span> clearAll = <span class="keyword">false</span>);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#ad6eda512195c7cbe249a1edbb99510cd">getInitialized</a>();</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code" href="class_nim_b_l_e_device.html#a77f9f343143d4f074ffb545dd14cbb2b">getAddress</a>();</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">static</span> std::string <a class="code" href="class_nim_b_l_e_device.html#abf8c494b54d9f0c9466c80f25dbdd961">toString</a>();</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#aabc68166b6dd4a744a98f94e569f37db">whiteListAdd</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp; address);</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#a81abbad5e371fe1cdd91c002b42cc654">whiteListRemove</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp; address);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#ae51e2d4d6169a61133178a1b0d6b5b45">onWhiteList</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp; address);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="class_nim_b_l_e_device.html#ab28cc2ec59fc9e62d05826633f53d2a0">getWhiteListCount</a>();</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code" href="class_nim_b_l_e_device.html#a4a2229e9e517b84773e65c75124b0789">getWhiteListAddress</a>(<span class="keywordtype">size_t</span> index);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_scan.html">NimBLEScan</a>* <a class="code" href="class_nim_b_l_e_device.html#af93d92316454b051125460056368baec">getScan</a>();</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; </div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_server.html">NimBLEServer</a>* <a class="code" href="class_nim_b_l_e_device.html#a4d9780d0b5fafc279483822af802a508">createServer</a>();</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_server.html">NimBLEServer</a>* <a class="code" href="class_nim_b_l_e_device.html#a41d4cc7c85cba0721c6649b001b31b4d">getServer</a>();</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; </div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;<span class="preprocessor">#ifdef ESP_PLATFORM</span></div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> setPower(esp_power_level_t powerLevel, esp_ble_power_type_t powerType=ESP_BLE_PWR_TYPE_DEFAULT);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> getPower(esp_ble_power_type_t powerType=ESP_BLE_PWR_TYPE_DEFAULT);</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> setOwnAddrType(uint8_t own_addr_type, <span class="keywordtype">bool</span> useNRPA=<span class="keyword">false</span>);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> setScanDuplicateCacheSize(uint16_t cacheSize);</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> setScanFilterMode(uint8_t type);</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> setPower(<span class="keywordtype">int</span> dbm);</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> getPower();</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a8d4e1013815e7b021029f447f1702833">setCustomGapHandler</a>(gap_event_handler handler);</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" 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 name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#aa8e340c02418771ce72dec758d560938">setSecurityAuth</a>(uint8_t auth_req);</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#ab9fee9e810d5fa18bc8a37053eb9b5d0">setSecurityIOCap</a>(uint8_t iocap);</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a92d36c3a34d9474fa1d7f66c0e477d1e">setSecurityInitKey</a>(uint8_t init_key);</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a57f0d4db1cc564176b23e860fce13f6a">setSecurityRespKey</a>(uint8_t init_key);</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a84631f6d657fb6bd39722560fa229d35">setSecurityPasskey</a>(uint32_t pin);</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">static</span> uint32_t <a class="code" href="class_nim_b_l_e_device.html#aa03937eadda020643b536c5d08174d3a">getSecurityPasskey</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a7d44bb960c0bb1bec02a33369c693085">setSecurityCallbacks</a>(<a class="code" href="class_nim_b_l_e_security_callbacks.html">NimBLESecurityCallbacks</a>* pCallbacks);</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_nim_b_l_e_device.html#a339157bf3d8fc712fa838e9a5127cc62">startSecurity</a>(uint16_t conn_id);</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_nim_b_l_e_device.html#a7d8203040611e3f82bf4848a9b371e98">setMTU</a>(uint16_t mtu);</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keyword">static</span> uint16_t <a class="code" href="class_nim_b_l_e_device.html#a5520cf3f544d571636eed162de394ec2">getMTU</a>();</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#a14ebc6070a261d7a6518ad435b673962">isIgnored</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp;address);</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a732425c5c5f5b5b4730c1689700346c0">addIgnored</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp;address);</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a0374ab8e323277bd8498609559966924">removeIgnored</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp;address);</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; </div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>* <a class="code" href="class_nim_b_l_e_device.html#aa994b01b2b5bb9f677f3cffb2f05d140">getAdvertising</a>();</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#ad0bc1019facfd79291b5353ff970473d">startAdvertising</a>();</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#a8b23c6ade03a69048f0568eb9ad3b034">stopAdvertising</a>();</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160;<span class="preprocessor">#if defined( CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code" href="class_nim_b_l_e_device.html#af8142995252f486916dbb9de2a5b0c9e">createClient</a>(<a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> peerAddress = <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a>(<span class="stringliteral">&quot;&quot;</span>));</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#a83aa0a3d9d57358d35082a442edf8549">deleteClient</a>(<a class="code" href="class_nim_b_l_e_client.html">NimBLEClient</a>* pClient);</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code" href="class_nim_b_l_e_device.html#ac7adcd510eef2b9546bcde9a253e56a9">getClientByID</a>(uint16_t conn_id);</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code" href="class_nim_b_l_e_device.html#ac4dbadc7fc170993e41532f675786504">getClientByPeerAddress</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp;peer_addr);</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_client.html">NimBLEClient</a>* <a class="code" href="class_nim_b_l_e_device.html#a10aec48b56ef404f42ade96d6244b312">getDisconnectedClient</a>();</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keyword">static</span> <span class="keywordtype">size_t</span> <a class="code" href="class_nim_b_l_e_device.html#abe21dcac43493689a06bc6ddb91b6faf">getClientListSize</a>();</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keyword">static</span> std::list&lt;NimBLEClient*&gt;* <a class="code" href="class_nim_b_l_e_device.html#a1a6fb5e8f0e2cdc012ebae4fb4d12fd0">getClientList</a>();</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL) || defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#a20fc979ec9dbad5cce7f73e41b2e422e">deleteBond</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp;address);</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="class_nim_b_l_e_device.html#a7fe0f568c17130150660e6307851be48">getNumBonds</a>();</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_device.html#a16bf4f5394735ed8d7f0bb32ca5d269a">isBonded</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> &amp;address);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_device.html#ab436502ecd044f8b3480ec3e824e1418">deleteAllBonds</a>();</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code" href="class_nim_b_l_e_device.html#ac7f090f4b1a2d593f38b20859e071f0c">getBondedAddress</a>(<span class="keywordtype">int</span> index);</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; </div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160;<span class="preprocessor">#if defined( CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_client.html">NimBLEClient</a>;</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; </div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_scan.html">NimBLEScan</a>;</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_server.html">NimBLEServer</a>;</div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a>;</div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>;</div>
<div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; </div>
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> onReset(<span class="keywordtype">int</span> reason);</div>
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> onSync(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160; <span class="keyword">static</span> <span class="keywordtype">void</span> host_task(<span class="keywordtype">void</span> *param);</div>
<div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keyword">static</span> <span class="keywordtype">bool</span> m_synced;</div>
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; </div>
<div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_scan.html">NimBLEScan</a>* m_pScan;</div>
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; </div>
<div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL)</span></div>
<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_server.html">NimBLEServer</a>* m_pServer;</div>
<div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; </div>
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>* m_bleAdvertising;</div>
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; </div>
<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160;<span class="preprocessor">#if defined( CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keyword">static</span> std::list &lt;NimBLEClient*&gt; m_cList;</div>
<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; <span class="keyword">static</span> std::list &lt;NimBLEAddress&gt; m_ignoreList;</div>
<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="keyword">static</span> <a class="code" href="class_nim_b_l_e_security_callbacks.html">NimBLESecurityCallbacks</a>* m_securityCallbacks;</div>
<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; <span class="keyword">static</span> uint32_t m_passkey;</div>
<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keyword">static</span> ble_gap_event_listener m_listener;</div>
<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; <span class="keyword">static</span> gap_event_handler m_customGapHandler;</div>
<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160; <span class="keyword">static</span> uint8_t m_own_addr_type;</div>
<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160;<span class="preprocessor">#ifdef ESP_PLATFORM</span></div>
<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; <span class="keyword">static</span> uint16_t m_scanDuplicateSize;</div>
<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160; <span class="keyword">static</span> uint8_t m_scanFilterMode;</div>
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; <span class="keyword">static</span> std::vector&lt;NimBLEAddress&gt; m_whiteList;</div>
<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>&#160;};</div>
<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160; </div>
<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>&#160; </div>
<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// CONFIG_BT_ENABLED</span></div>
<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160;<span class="preprocessor">#endif </span><span class="comment">// MAIN_NIMBLEDEVICE_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:39</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:85</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:62</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:38</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:92</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a0374ab8e323277bd8498609559966924"><div class="ttname"><a href="class_nim_b_l_e_device.html#a0374ab8e323277bd8498609559966924">NimBLEDevice::removeIgnored</a></div><div class="ttdeci">static void removeIgnored(const NimBLEAddress &amp;address)</div><div class="ttdoc">Remove a device from the ignore list.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:1133</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 in the list.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:288</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a14ebc6070a261d7a6518ad435b673962"><div class="ttname"><a href="class_nim_b_l_e_device.html#a14ebc6070a261d7a6518ad435b673962">NimBLEDevice::isIgnored</a></div><div class="ttdeci">static bool isIgnored(const NimBLEAddress &amp;address)</div><div class="ttdoc">Check if the device address is on our ignore list.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:1107</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:551</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a1a6fb5e8f0e2cdc012ebae4fb4d12fd0"><div class="ttname"><a href="class_nim_b_l_e_device.html#a1a6fb5e8f0e2cdc012ebae4fb4d12fd0">NimBLEDevice::getClientList</a></div><div class="ttdeci">static std::list&lt; NimBLEClient * &gt; * getClientList()</div><div class="ttdoc">Get the list of created client objects.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:235</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:531</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a339157bf3d8fc712fa838e9a5127cc62"><div class="ttname"><a href="class_nim_b_l_e_device.html#a339157bf3d8fc712fa838e9a5127cc62">NimBLEDevice::startSecurity</a></div><div class="ttdeci">static int startSecurity(uint16_t conn_id)</div><div class="ttdoc">Start the connection securing and authorization for this connection.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:1091</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:110</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:700</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 a new instance of a server.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:94</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:445</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a57f0d4db1cc564176b23e860fce13f6a"><div class="ttname"><a href="class_nim_b_l_e_device.html#a57f0d4db1cc564176b23e860fce13f6a">NimBLEDevice::setSecurityRespKey</a></div><div class="ttdeci">static void setSecurityRespKey(uint8_t init_key)</div><div class="ttdoc">Set the keys we are willing to accept during pairing.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:1012</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a674d2e68d4ba0e3f84d7993f9da7d15b"><div class="ttname"><a href="class_nim_b_l_e_device.html#a674d2e68d4ba0e3f84d7993f9da7d15b">NimBLEDevice::init</a></div><div class="ttdeci">static void init(const std::string &amp;deviceName)</div><div class="ttdoc">Initialize the BLE environment.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:802</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a732425c5c5f5b5b4730c1689700346c0"><div class="ttname"><a href="class_nim_b_l_e_device.html#a732425c5c5f5b5b4730c1689700346c0">NimBLEDevice::addIgnored</a></div><div class="ttdeci">static void addIgnored(const NimBLEAddress &amp;address)</div><div class="ttdoc">Add a device to the ignore list.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:1123</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:397</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a7d44bb960c0bb1bec02a33369c693085"><div class="ttname"><a href="class_nim_b_l_e_device.html#a7d44bb960c0bb1bec02a33369c693085">NimBLEDevice::setSecurityCallbacks</a></div><div class="ttdeci">static void setSecurityCallbacks(NimBLESecurityCallbacks *pCallbacks)</div><div class="ttdoc">Set callbacks that will be used to handle encryption negotiation events and authentication events.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:1043</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a7d8203040611e3f82bf4848a9b371e98"><div class="ttname"><a href="class_nim_b_l_e_device.html#a7d8203040611e3f82bf4848a9b371e98">NimBLEDevice::setMTU</a></div><div class="ttdeci">static int 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:426</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:503</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:649</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:190</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a84631f6d657fb6bd39722560fa229d35"><div class="ttname"><a href="class_nim_b_l_e_device.html#a84631f6d657fb6bd39722560fa229d35">NimBLEDevice::setSecurityPasskey</a></div><div class="ttdeci">static void setSecurityPasskey(uint32_t pin)</div><div class="ttdoc">Set the passkey the server will ask for when pairing.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:1022</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a8b23c6ade03a69048f0568eb9ad3b034"><div class="ttname"><a href="class_nim_b_l_e_device.html#a8b23c6ade03a69048f0568eb9ad3b034">NimBLEDevice::stopAdvertising</a></div><div class="ttdeci">static void stopAdvertising()</div><div class="ttdoc">Convenience function to stop advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:140</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a8d4e1013815e7b021029f447f1702833"><div class="ttname"><a href="class_nim_b_l_e_device.html#a8d4e1013815e7b021029f447f1702833">NimBLEDevice::setCustomGapHandler</a></div><div class="ttdeci">static void 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:1148</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_a92d36c3a34d9474fa1d7f66c0e477d1e"><div class="ttname"><a href="class_nim_b_l_e_device.html#a92d36c3a34d9474fa1d7f66c0e477d1e">NimBLEDevice::setSecurityInitKey</a></div><div class="ttdeci">static void setSecurityInitKey(uint8_t init_key)</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:997</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:1032</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:947</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 NimBLEAdvertising * getAdvertising()</div><div class="ttdoc">Get the instance of the advertising object.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:121</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:617</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:689</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ab436502ecd044f8b3480ec3e824e1418"><div class="ttname"><a href="class_nim_b_l_e_device.html#ab436502ecd044f8b3480ec3e824e1418">NimBLEDevice::deleteAllBonds</a></div><div class="ttdeci">static void deleteAllBonds()</div><div class="ttdoc">Deletes all bonding information.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:520</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:982</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_abe21dcac43493689a06bc6ddb91b6faf"><div class="ttname"><a href="class_nim_b_l_e_device.html#abe21dcac43493689a06bc6ddb91b6faf">NimBLEDevice::getClientListSize</a></div><div class="ttdeci">static size_t getClientListSize()</div><div class="ttdoc">Get the number of created client objects.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:245</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:415</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ac4dbadc7fc170993e41532f675786504"><div class="ttname"><a href="class_nim_b_l_e_device.html#ac4dbadc7fc170993e41532f675786504">NimBLEDevice::getClientByPeerAddress</a></div><div class="ttdeci">static NimBLEClient * getClientByPeerAddress(const NimBLEAddress &amp;peer_addr)</div><div class="ttdoc">Get a reference to a client by peer address.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:273</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ac7adcd510eef2b9546bcde9a253e56a9"><div class="ttname"><a href="class_nim_b_l_e_device.html#ac7adcd510eef2b9546bcde9a253e56a9">NimBLEDevice::getClientByID</a></div><div class="ttdeci">static NimBLEClient * getClientByID(uint16_t conn_id)</div><div class="ttdoc">Get a reference to a client by connection ID.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:256</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:577</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ad0bc1019facfd79291b5353ff970473d"><div class="ttname"><a href="class_nim_b_l_e_device.html#ad0bc1019facfd79291b5353ff970473d">NimBLEDevice::startAdvertising</a></div><div class="ttdeci">static void startAdvertising()</div><div class="ttdoc">Convenience function to begin advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:132</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ad6eda512195c7cbe249a1edbb99510cd"><div class="ttname"><a href="class_nim_b_l_e_device.html#ad6eda512195c7cbe249a1edbb99510cd">NimBLEDevice::getInitialized</a></div><div class="ttdeci">static bool getInitialized()</div><div class="ttdoc">Check if the initialization is complete.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:935</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:600</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_ae95693ce0f5b8e784ea8e10834dd624c"><div class="ttname"><a href="class_nim_b_l_e_device.html#ae95693ce0f5b8e784ea8e10834dd624c">NimBLEDevice::deinit</a></div><div class="ttdeci">static void deinit(bool clearAll=false)</div><div class="ttdoc">Shutdown the NimBLE stack/controller.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:878</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html_af8142995252f486916dbb9de2a5b0c9e"><div class="ttname"><a href="class_nim_b_l_e_device.html#af8142995252f486916dbb9de2a5b0c9e">NimBLEDevice::createClient</a></div><div class="ttdeci">static NimBLEClient * createClient(NimBLEAddress peerAddress=NimBLEAddress(&quot;&quot;))</div><div class="ttdoc">Creates a new client object and maintains a list of all client objects each client can connect to 1 p...</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.cpp:171</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:153</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:63</div></div>
<div class="ttc" id="aclass_nim_b_l_e_security_callbacks_html"><div class="ttname"><a href="class_nim_b_l_e_security_callbacks.html">NimBLESecurityCallbacks</a></div><div class="ttdoc">Callbacks to handle GAP events related to authorization. Deprecated - provided for backward compatibi...</div><div class="ttdef"><b>Definition:</b> NimBLESecurity.h:94</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:42</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>
2022-01-15 23:23:57 +01:00
<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.1 </li>
</ul>
</div>
</body>
</html>