esp-nimble-cpp/_nim_b_l_e_advertised_device_8h_source.html

280 lines
48 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/NimBLEAdvertisedDevice.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_advertised_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">NimBLEAdvertisedDevice.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"> * NimBLEAdvertisedDevice.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"> * BLEAdvertisedDevice.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: Jul 3, 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 COMPONENTS_NIMBLEADVERTISEDDEVICE_H_</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#define COMPONENTS_NIMBLEADVERTISEDDEVICE_H_</span></div>
2022-01-15 23:23:57 +01:00
<div class="line"><a name="l00017"></a><span class="lineno"> 17</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="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_ENABLED) &amp;&amp; defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
2022-01-15 23:23:57 +01:00
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;NimBLEAddress.h&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;NimBLEScan.h&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;NimBLEUUID.h&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#if defined(CONFIG_NIMBLE_CPP_IDF)</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#include &quot;host/ble_hs_adv.h&quot;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &quot;nimble/nimble/host/include/host/ble_hs_adv.h&quot;</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160; </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor">#include &lt;map&gt;</span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;time.h&gt;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="keyword">class </span><a class="code" href="class_nim_b_l_e_scan.html">NimBLEScan</a>;</div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html"> 42</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_nim_b_l_e_advertised_device.html">NimBLEAdvertisedDevice</a> {</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <a class="code" href="class_nim_b_l_e_advertised_device.html#ab8972714ecd578fca51fb63d9834a34e">NimBLEAdvertisedDevice</a>();</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code" href="class_nim_b_l_e_advertised_device.html#aa60721a7b5b44a3bb66980f003517579">getAddress</a>();</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a9d07ee4c38de4170db24a5e01663ee6d">getAdvType</a>();</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; uint16_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a228afa5e43421b4d96d9c08241718309">getAppearance</a>();</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; uint16_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a9a7a36e9937e16ffab4f1543ea54073f">getAdvInterval</a>();</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; uint16_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a33fcdc3bf5107c157b10ad4519938c9f">getMinInterval</a>();</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; uint16_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a450eca96c605f199d2786a044612db17">getMaxInterval</a>();</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; std::string <a class="code" href="class_nim_b_l_e_advertised_device.html#afa334006230601cc5c6429b18819a2e2">getManufacturerData</a>();</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; std::string <a class="code" href="class_nim_b_l_e_advertised_device.html#ad65f8040a142f8d6d0763d4876f0d22e">getURI</a>();</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; </div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html#ae9a586e46a555cf5fc817c9fe301b295"> 64</a></span>&#160; T <a class="code" href="class_nim_b_l_e_advertised_device.html#ae9a586e46a555cf5fc817c9fe301b295">getManufacturerData</a>(<span class="keywordtype">bool</span> skipSizeCheck = <span class="keyword">false</span>) {</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; std::string data = <a class="code" href="class_nim_b_l_e_advertised_device.html#afa334006230601cc5c6429b18819a2e2">getManufacturerData</a>();</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordflow">if</span>(!skipSizeCheck &amp;&amp; data.size() &lt; <span class="keyword">sizeof</span>(T)) <span class="keywordflow">return</span> T();</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *pData = data.data();</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordflow">return</span> *((T *)pData);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; }</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; std::string <a class="code" href="class_nim_b_l_e_advertised_device.html#ae6c6b48369d71a5998c1393c0d6a0179">getName</a>();</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#acd42dfbc92a43fc90e933df975c029f3">getRSSI</a>();</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="class_nim_b_l_e_scan.html">NimBLEScan</a>* <a class="code" href="class_nim_b_l_e_advertised_device.html#ad3931c72aaded3b594896c29b3691562">getScan</a>();</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a5fc9be9de9209622259f8d28b01825df">getServiceDataCount</a>();</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; std::string <a class="code" href="class_nim_b_l_e_advertised_device.html#aecb3e30a94abd59401cafb70a5903abb">getServiceData</a>(uint8_t index = 0);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; std::string <a class="code" href="class_nim_b_l_e_advertised_device.html#aecb3e30a94abd59401cafb70a5903abb">getServiceData</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;uuid);</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html#a9017ce5b59bdae3cebf33c54f28cee70"> 88</a></span>&#160; T <a class="code" href="class_nim_b_l_e_advertised_device.html#a9017ce5b59bdae3cebf33c54f28cee70">getServiceData</a>(uint8_t index = 0, <span class="keywordtype">bool</span> skipSizeCheck = <span class="keyword">false</span>) {</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; std::string data = <a class="code" href="class_nim_b_l_e_advertised_device.html#aecb3e30a94abd59401cafb70a5903abb">getServiceData</a>(index);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordflow">if</span>(!skipSizeCheck &amp;&amp; data.size() &lt; <span class="keyword">sizeof</span>(T)) <span class="keywordflow">return</span> T();</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *pData = data.data();</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordflow">return</span> *((T *)pData);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; </div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html#a9ca1c022e10764ec72850ff3a011b009"> 105</a></span>&#160; T <a class="code" href="class_nim_b_l_e_advertised_device.html#a9ca1c022e10764ec72850ff3a011b009">getServiceData</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;uuid, <span class="keywordtype">bool</span> skipSizeCheck = <span class="keyword">false</span>) {</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; std::string data = <a class="code" href="class_nim_b_l_e_advertised_device.html#aecb3e30a94abd59401cafb70a5903abb">getServiceData</a>(uuid);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordflow">if</span>(!skipSizeCheck &amp;&amp; data.size() &lt; <span class="keyword">sizeof</span>(T)) <span class="keywordflow">return</span> T();</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span> *pData = data.data();</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">return</span> *((T *)pData);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; }</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> <a class="code" href="class_nim_b_l_e_advertised_device.html#a4f89e99dffdfde45c1cafff74a20a95f">getServiceDataUUID</a>(uint8_t index = 0);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> <a class="code" href="class_nim_b_l_e_advertised_device.html#ab53f862df15953d19ba7a45d4cf51b46">getServiceUUID</a>(uint8_t index = 0);</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a6dc4484bc89ea5560a51c349b5300049">getServiceUUIDCount</a>();</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code" href="class_nim_b_l_e_advertised_device.html#a599cad9a3f3d535049c87a911bc1b14d">getTargetAddress</a>(uint8_t index = 0);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a9352a7760d9e4af0561d7923fcbe2535">getTargetAddressCount</a>();</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; int8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#afee346437447173eed1b9edf1de70f34">getTXPower</a>();</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; uint8_t* <a class="code" href="class_nim_b_l_e_advertised_device.html#afacf7717a15b36af184cd957d397e384">getPayload</a>();</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#ae960e43434bf62ec83e9230d7bf7046c">getAdvLength</a>();</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#ac7879f4aa0f2b069b1d3aff4809ae62c">getPayloadLength</a>();</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#afc79cdc087c81b34643d70c8259eb9a3">getAddressType</a>();</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; time_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a1855415f3c60bc88d62e9206fe6ed75a">getTimestamp</a>();</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a37ad095c066aa231a52a7259734c9bce">isAdvertisingService</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;uuid);</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#accc6713f85db6174cfe8436059aa8bf1">haveAppearance</a>();</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#abe58f5fde119d8c0a8fb85ba1e8cc5c9">haveManufacturerData</a>();</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a86805fecd4432335feecf77bb6a0f12e">haveName</a>();</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a611802e8898e422842d60486b60b8c42">haveRSSI</a>();</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#afba3425cfcfc12eca219a1abe5f6732c">haveServiceData</a>();</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a5c4aae7e27c27201846ba4e15448e557">haveServiceUUID</a>();</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#af5293030ef439856c195caa3aba86543">haveTXPower</a>();</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a3274624943c942f357c6f8d489481bc8">haveConnParams</a>();</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#aa8b4660e5d123f16a07e0fefa3bcf4bc">haveAdvInterval</a>();</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a1172d33a77bc018e314be78664b222b9">haveTargetAddress</a>();</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a83ebd08b512dc936b1059db7a69b9ead">haveURI</a>();</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; std::string <a class="code" href="class_nim_b_l_e_advertised_device.html#ac1b8ff0f2897abda335743d55668fcd9">toString</a>();</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</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="l00139"></a><span class="lineno"> 139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; <span class="keywordtype">void</span> setAddress(<a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> address);</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordtype">void</span> setAdvType(uint8_t advType);</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; <span class="keywordtype">void</span> setPayload(<span class="keyword">const</span> uint8_t *payload, uint8_t length, <span class="keywordtype">bool</span> append);</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordtype">void</span> setRSSI(<span class="keywordtype">int</span> rssi);</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; uint8_t findAdvField(uint8_t type, uint8_t index = 0, uint8_t *data_loc = <span class="keyword">nullptr</span>);</div>
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; uint8_t findServiceData(uint8_t index, uint8_t* bytes);</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; <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> m_address = <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="l00148"></a><span class="lineno"> 148</span>&#160; uint8_t m_advType;</div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; <span class="keywordtype">int</span> m_rssi;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160; time_t m_timestamp;</div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordtype">bool</span> m_callbackSent;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160; uint8_t m_advLength;</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; </div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; std::vector&lt;uint8_t&gt; m_payload;</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;};</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device_callbacks.html"> 164</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_nim_b_l_e_advertised_device_callbacks.html">NimBLEAdvertisedDeviceCallbacks</a> {</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keyword">virtual</span> ~<a class="code" href="class_nim_b_l_e_advertised_device_callbacks.html">NimBLEAdvertisedDeviceCallbacks</a>() {}</div>
<div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device_callbacks.html#af6a25e1bb773a147536b1785b2aae606"> 173</a></span>&#160; <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertised_device_callbacks.html#af6a25e1bb773a147536b1785b2aae606">onResult</a>(<a class="code" href="class_nim_b_l_e_advertised_device.html">NimBLEAdvertisedDevice</a>* advertisedDevice) = 0;</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;};</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* CONFIG_BT_ENABLED &amp;&amp; CONFIG_BT_NIMBLE_ROLE_OBSERVER */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* COMPONENTS_NIMBLEADVERTISEDDEVICE_H_ */</span><span class="preprocessor"></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_advertised_device_callbacks_html"><div class="ttname"><a href="class_nim_b_l_e_advertised_device_callbacks.html">NimBLEAdvertisedDeviceCallbacks</a></div><div class="ttdoc">A callback handler for callbacks associated device scanning.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.h:164</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_callbacks_html_af6a25e1bb773a147536b1785b2aae606"><div class="ttname"><a href="class_nim_b_l_e_advertised_device_callbacks.html#af6a25e1bb773a147536b1785b2aae606">NimBLEAdvertisedDeviceCallbacks::onResult</a></div><div class="ttdeci">virtual void onResult(NimBLEAdvertisedDevice *advertisedDevice)=0</div><div class="ttdoc">Called when a new scan result is detected.</div></div>
2022-01-15 23:23:57 +01:00
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html">NimBLEAdvertisedDevice</a></div><div class="ttdoc">A representation of a BLE advertised device found by a scan.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.h:42</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a1172d33a77bc018e314be78664b222b9"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a1172d33a77bc018e314be78664b222b9">NimBLEAdvertisedDevice::haveTargetAddress</a></div><div class="ttdeci">bool haveTargetAddress()</div><div class="ttdoc">Does the advertisement contain a target address?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:532</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a1855415f3c60bc88d62e9206fe6ed75a"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a1855415f3c60bc88d62e9206fe6ed75a">NimBLEAdvertisedDevice::getTimestamp</a></div><div class="ttdeci">time_t getTimestamp()</div><div class="ttdoc">Get the timeStamp of when the device last advertised.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:771</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a228afa5e43421b4d96d9c08241718309"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a228afa5e43421b4d96d9c08241718309">NimBLEAdvertisedDevice::getAppearance</a></div><div class="ttdeci">uint16_t getAppearance()</div><div class="ttdoc">Get the appearance.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:71</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a3274624943c942f357c6f8d489481bc8"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a3274624943c942f357c6f8d489481bc8">NimBLEAdvertisedDevice::haveConnParams</a></div><div class="ttdeci">bool haveConnParams()</div><div class="ttdoc">Does this advertisement have preferred connection parameters?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:487</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a33fcdc3bf5107c157b10ad4519938c9f"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a33fcdc3bf5107c157b10ad4519938c9f">NimBLEAdvertisedDevice::getMinInterval</a></div><div class="ttdeci">uint16_t getMinInterval()</div><div class="ttdoc">Get the preferred min connection interval.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:107</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a37ad095c066aa231a52a7259734c9bce"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a37ad095c066aa231a52a7259734c9bce">NimBLEAdvertisedDevice::isAdvertisingService</a></div><div class="ttdeci">bool isAdvertisingService(const NimBLEUUID &amp;uuid)</div><div class="ttdoc">Check advertised services for existance of the required UUID.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:453</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a450eca96c605f199d2786a044612db17"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a450eca96c605f199d2786a044612db17">NimBLEAdvertisedDevice::getMaxInterval</a></div><div class="ttdeci">uint16_t getMaxInterval()</div><div class="ttdoc">Get the preferred max connection interval.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:125</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a4f89e99dffdfde45c1cafff74a20a95f"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a4f89e99dffdfde45c1cafff74a20a95f">NimBLEAdvertisedDevice::getServiceDataUUID</a></div><div class="ttdeci">NimBLEUUID getServiceDataUUID(uint8_t index=0)</div><div class="ttdoc">Get the UUID of the serice data at the index.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:313</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a599cad9a3f3d535049c87a911bc1b14d"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a599cad9a3f3d535049c87a911bc1b14d">NimBLEAdvertisedDevice::getTargetAddress</a></div><div class="ttdeci">NimBLEAddress getTargetAddress(uint8_t index=0)</div><div class="ttdoc">Get the target address at the index.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:232</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a5c4aae7e27c27201846ba4e15448e557"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a5c4aae7e27c27201846ba4e15448e557">NimBLEAdvertisedDevice::haveServiceUUID</a></div><div class="ttdeci">bool haveServiceUUID()</div><div class="ttdoc">Does this advertisement have a service UUID value?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:570</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a5fc9be9de9209622259f8d28b01825df"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a5fc9be9de9209622259f8d28b01825df">NimBLEAdvertisedDevice::getServiceDataCount</a></div><div class="ttdeci">size_t getServiceDataCount()</div><div class="ttdoc">Get the count of advertised service data UUIDS.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:369</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a611802e8898e422842d60486b60b8c42"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a611802e8898e422842d60486b60b8c42">NimBLEAdvertisedDevice::haveRSSI</a></div><div class="ttdeci">bool haveRSSI()</div><div class="ttdoc">Does this advertisement have a signal strength value?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:552</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a6dc4484bc89ea5560a51c349b5300049"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a6dc4484bc89ea5560a51c349b5300049">NimBLEAdvertisedDevice::getServiceUUIDCount</a></div><div class="ttdeci">size_t getServiceUUIDCount()</div><div class="ttdoc">Get the number of services advertised.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:434</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a83ebd08b512dc936b1059db7a69b9ead"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a83ebd08b512dc936b1059db7a69b9ead">NimBLEAdvertisedDevice::haveURI</a></div><div class="ttdeci">bool haveURI()</div><div class="ttdoc">Does this advertisement have a URI?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:523</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a86805fecd4432335feecf77bb6a0f12e"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a86805fecd4432335feecf77bb6a0f12e">NimBLEAdvertisedDevice::haveName</a></div><div class="ttdeci">bool haveName()</div><div class="ttdoc">Does this advertisement have a name value?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:542</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a9017ce5b59bdae3cebf33c54f28cee70"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a9017ce5b59bdae3cebf33c54f28cee70">NimBLEAdvertisedDevice::getServiceData</a></div><div class="ttdeci">T getServiceData(uint8_t index=0, bool skipSizeCheck=false)</div><div class="ttdoc">A template to convert the service data to &lt;type&gt;.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.h:88</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a9352a7760d9e4af0561d7923fcbe2535"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a9352a7760d9e4af0561d7923fcbe2535">NimBLEAdvertisedDevice::getTargetAddressCount</a></div><div class="ttdeci">size_t getTargetAddressCount()</div><div class="ttdoc">Get the number of target addresses.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:217</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a9a7a36e9937e16ffab4f1543ea54073f"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a9a7a36e9937e16ffab4f1543ea54073f">NimBLEAdvertisedDevice::getAdvInterval</a></div><div class="ttdeci">uint16_t getAdvInterval()</div><div class="ttdoc">Get the advertisement interval.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:89</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a9ca1c022e10764ec72850ff3a011b009"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a9ca1c022e10764ec72850ff3a011b009">NimBLEAdvertisedDevice::getServiceData</a></div><div class="ttdeci">T getServiceData(const NimBLEUUID &amp;uuid, bool skipSizeCheck=false)</div><div class="ttdoc">A template to convert the service data to &lt;type&gt;.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.h:105</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a9d07ee4c38de4170db24a5e01663ee6d"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a9d07ee4c38de4170db24a5e01663ee6d">NimBLEAdvertisedDevice::getAdvType</a></div><div class="ttdeci">uint8_t getAdvType()</div><div class="ttdoc">Get the advertisement type.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:58</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_aa60721a7b5b44a3bb66980f003517579"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#aa60721a7b5b44a3bb66980f003517579">NimBLEAdvertisedDevice::getAddress</a></div><div class="ttdeci">NimBLEAddress getAddress()</div><div class="ttdoc">Get the address of the advertising device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:44</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_aa8b4660e5d123f16a07e0fefa3bcf4bc"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#aa8b4660e5d123f16a07e0fefa3bcf4bc">NimBLEAdvertisedDevice::haveAdvInterval</a></div><div class="ttdeci">bool haveAdvInterval()</div><div class="ttdoc">Does this advertisement have have the advertising interval?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:496</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ab53f862df15953d19ba7a45d4cf51b46"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ab53f862df15953d19ba7a45d4cf51b46">NimBLEAdvertisedDevice::getServiceUUID</a></div><div class="ttdeci">NimBLEUUID getServiceUUID(uint8_t index=0)</div><div class="ttdoc">Get the Service UUID.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:385</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ab8972714ecd578fca51fb63d9834a34e"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ab8972714ecd578fca51fb63d9834a34e">NimBLEAdvertisedDevice::NimBLEAdvertisedDevice</a></div><div class="ttdeci">NimBLEAdvertisedDevice()</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:29</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_abe58f5fde119d8c0a8fb85ba1e8cc5c9"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#abe58f5fde119d8c0a8fb85ba1e8cc5c9">NimBLEAdvertisedDevice::haveManufacturerData</a></div><div class="ttdeci">bool haveManufacturerData()</div><div class="ttdoc">Does this advertisement have manufacturer data?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:514</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ac1b8ff0f2897abda335743d55668fcd9"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ac1b8ff0f2897abda335743d55668fcd9">NimBLEAdvertisedDevice::toString</a></div><div class="ttdeci">std::string toString()</div><div class="ttdoc">Create a string representation of this device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:678</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ac7879f4aa0f2b069b1d3aff4809ae62c"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ac7879f4aa0f2b069b1d3aff4809ae62c">NimBLEAdvertisedDevice::getPayloadLength</a></div><div class="ttdeci">size_t getPayloadLength()</div><div class="ttdoc">Get the length of the payload advertised by the device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:780</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_accc6713f85db6174cfe8436059aa8bf1"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#accc6713f85db6174cfe8436059aa8bf1">NimBLEAdvertisedDevice::haveAppearance</a></div><div class="ttdeci">bool haveAppearance()</div><div class="ttdoc">Does this advertisement have an appearance value?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:505</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_acd42dfbc92a43fc90e933df975c029f3"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#acd42dfbc92a43fc90e933df975c029f3">NimBLEAdvertisedDevice::getRSSI</a></div><div class="ttdeci">int getRSSI()</div><div class="ttdoc">Get the RSSI.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:199</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad3931c72aaded3b594896c29b3691562"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad3931c72aaded3b594896c29b3691562">NimBLEAdvertisedDevice::getScan</a></div><div class="ttdeci">NimBLEScan * getScan()</div><div class="ttdoc">Get the scan object that created this advertised device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:208</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad65f8040a142f8d6d0763d4876f0d22e"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad65f8040a142f8d6d0763d4876f0d22e">NimBLEAdvertisedDevice::getURI</a></div><div class="ttdeci">std::string getURI()</div><div class="ttdoc">Get the URI from the advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:161</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ae6c6b48369d71a5998c1393c0d6a0179"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ae6c6b48369d71a5998c1393c0d6a0179">NimBLEAdvertisedDevice::getName</a></div><div class="ttdeci">std::string getName()</div><div class="ttdoc">Get the advertised name.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:179</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ae960e43434bf62ec83e9230d7bf7046c"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ae960e43434bf62ec83e9230d7bf7046c">NimBLEAdvertisedDevice::getAdvLength</a></div><div class="ttdeci">uint8_t getAdvLength()</div><div class="ttdoc">Get the length of the advertisement data in the payload.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:749</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ae9a586e46a555cf5fc817c9fe301b295"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ae9a586e46a555cf5fc817c9fe301b295">NimBLEAdvertisedDevice::getManufacturerData</a></div><div class="ttdeci">T getManufacturerData(bool skipSizeCheck=false)</div><div class="ttdoc">A template to convert the service data to &lt;type&gt;.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.h:64</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_aecb3e30a94abd59401cafb70a5903abb"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#aecb3e30a94abd59401cafb70a5903abb">NimBLEAdvertisedDevice::getServiceData</a></div><div class="ttdeci">std::string getServiceData(uint8_t index=0)</div><div class="ttdoc">Get the service data.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:264</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_af5293030ef439856c195caa3aba86543"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#af5293030ef439856c195caa3aba86543">NimBLEAdvertisedDevice::haveTXPower</a></div><div class="ttdeci">bool haveTXPower()</div><div class="ttdoc">Does this advertisement have a transmission power value?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:579</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_afa334006230601cc5c6429b18819a2e2"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#afa334006230601cc5c6429b18819a2e2">NimBLEAdvertisedDevice::getManufacturerData</a></div><div class="ttdeci">std::string getManufacturerData()</div><div class="ttdoc">Get the manufacturer data.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:143</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_afacf7717a15b36af184cd957d397e384"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#afacf7717a15b36af184cd957d397e384">NimBLEAdvertisedDevice::getPayload</a></div><div class="ttdeci">uint8_t * getPayload()</div><div class="ttdoc">Get the payload advertised by the device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:724</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_afba3425cfcfc12eca219a1abe5f6732c"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#afba3425cfcfc12eca219a1abe5f6732c">NimBLEAdvertisedDevice::haveServiceData</a></div><div class="ttdeci">bool haveServiceData()</div><div class="ttdoc">Does this advertisement have a service data value?</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:561</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_afc79cdc087c81b34643d70c8259eb9a3"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#afc79cdc087c81b34643d70c8259eb9a3">NimBLEAdvertisedDevice::getAddressType</a></div><div class="ttdeci">uint8_t getAddressType()</div><div class="ttdoc">Get the advertised device address type.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:762</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_afee346437447173eed1b9edf1de70f34"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#afee346437447173eed1b9edf1de70f34">NimBLEAdvertisedDevice::getTXPower</a></div><div class="ttdeci">int8_t getTXPower()</div><div class="ttdoc">Get the TX Power.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:469</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_u_u_i_d_html"><div class="ttname"><a href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a></div><div class="ttdoc">A model of a BLE UUID.</div><div class="ttdef"><b>Definition:</b> NimBLEUUID.h:37</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>NimBLEAdvertisedDevice.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>