mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-12-26 04:30:46 +01:00
306 lines
54 KiB
HTML
306 lines
54 KiB
HTML
<!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"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>esp-nimble-cpp: /github/workspace/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;">
|
|
<div id="projectname">esp-nimble-cpp
|
|
 <span id="projectnumber">1.4.1</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&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&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&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> <span class="comment">/*</span></div>
|
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * NimBLEAdvertisedDevice.h</span></div>
|
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Created: on Jan 24 2020</span></div>
|
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Author H2zero</span></div>
|
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * Originally:</span></div>
|
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * BLEAdvertisedDevice.h</span></div>
|
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> *</span></div>
|
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * Created on: Jul 3, 2017</span></div>
|
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * Author: kolban</span></div>
|
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> */</span></div>
|
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifndef COMPONENTS_NIMBLEADVERTISEDDEVICE_H_</span></div>
|
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#define COMPONENTS_NIMBLEADVERTISEDDEVICE_H_</span></div>
|
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="nimconfig_8h.html">nimconfig.h</a>"</span></div>
|
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
|
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
|
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "NimBLEAddress.h"</span></div>
|
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "NimBLEScan.h"</span></div>
|
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "NimBLEUUID.h"</span></div>
|
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>  </div>
|
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#if defined(CONFIG_NIMBLE_CPP_IDF)</span></div>
|
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "host/ble_hs_adv.h"</span></div>
|
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#else</span></div>
|
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "nimble/nimble/host/include/host/ble_hs_adv.h"</span></div>
|
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  </div>
|
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <map></span></div>
|
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <vector></span></div>
|
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <time.h></span></div>
|
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
|
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  </div>
|
|
<div class="line"><a name="l00035"></a><span class="lineno"> 35</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="l00042"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html"> 42</a></span> <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> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <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>  </div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <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>  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>  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>  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>  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>  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>  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>  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>  </div>
|
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></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>  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>  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>  <span class="keywordflow">if</span>(!skipSizeCheck && data.size() < <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>  <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>  <span class="keywordflow">return</span> *((T *)pData);</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  }</div>
|
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  </div>
|
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  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>  <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>  <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>  uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a1602b70c37fb9a5f2f7ca4eacbf01091">getServiceDataCount</a>();</div>
|
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  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>  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> &uuid);</div>
|
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  </div>
|
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></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>  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>  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>  <span class="keywordflow">if</span>(!skipSizeCheck && data.size() < <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>  <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>  <span class="keywordflow">return</span> *((T *)pData);</div>
|
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
|
|
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
|
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keyword">template</span><<span class="keyword">typename</span> T></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>  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> &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>  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>  <span class="keywordflow">if</span>(!skipSizeCheck && data.size() < <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>  <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>  <span class="keywordflow">return</span> *((T *)pData);</div>
|
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  }</div>
|
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <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>  <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>  uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a5ca6792d1ee559470ae8edccc1aea20d">getServiceUUIDCount</a>();</div>
|
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <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>  uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#ae2256f6b4da4c11cf75cb773a6b7f223">getTargetAddressCount</a>();</div>
|
|
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  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>  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>  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>  <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>  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>  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>  <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> &uuid);</div>
|
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <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>  <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>  <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>  <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>  <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>  <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>  <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>  <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>  <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>  <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>  <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>  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>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a54917b2644c433977e24a10a63d7431a">isConnectable</a>();</div>
|
|
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertised_device.html#a3684969e3e10cd0af9ecaf342847ea71">isLegacyAdvertisement</a>();</div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> <span class="preprocessor">#if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a6361e2b275cc45578f1000b5fd1b3c29">getSetId</a>();</div>
|
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a9b4ad695a4f035512d4d17313d8c5d3b">getPrimaryPhy</a>();</div>
|
|
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  uint8_t <a class="code" href="class_nim_b_l_e_advertised_device.html#a1efd77b20e3198ef148282bf75ff3e22">getSecondaryPhy</a>();</div>
|
|
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  uint16_t <a class="code" href="class_nim_b_l_e_advertised_device.html#ad9c5b9ffda267ddbcaef6b0f236846f9">getPeriodicInterval</a>();</div>
|
|
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>  </div>
|
|
<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">private</span>:</div>
|
|
<div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  <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="l00147"></a><span class="lineno"> 147</span>  </div>
|
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <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="l00149"></a><span class="lineno"> 149</span>  <span class="keywordtype">void</span> setAdvType(uint8_t advType, <span class="keywordtype">bool</span> isLegacyAdv);</div>
|
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <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="l00151"></a><span class="lineno"> 151</span>  <span class="keywordtype">void</span> setRSSI(<span class="keywordtype">int</span> rssi);</div>
|
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <span class="preprocessor">#if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
|
|
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>  <span class="keywordtype">void</span> setSetId(uint8_t sid) { m_sid = sid; }</div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keywordtype">void</span> setPrimaryPhy(uint8_t phy) { m_primPhy = phy; }</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>  <span class="keywordtype">void</span> setSecondaryPhy(uint8_t phy) { m_secPhy = phy; }</div>
|
|
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  <span class="keywordtype">void</span> setPeriodicInterval(uint16_t itvl) { m_periodicItvl = itvl; }</div>
|
|
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  uint8_t findAdvField(uint8_t type, uint8_t index = 0, <span class="keywordtype">size_t</span> * data_loc = <span class="keyword">nullptr</span>);</div>
|
|
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>  <span class="keywordtype">size_t</span> findServiceData(uint8_t index, uint8_t* bytes);</div>
|
|
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  </div>
|
|
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  <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">""</span>);</div>
|
|
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>  uint8_t m_advType;</div>
|
|
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="keywordtype">int</span> m_rssi;</div>
|
|
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  time_t m_timestamp;</div>
|
|
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keywordtype">bool</span> m_callbackSent;</div>
|
|
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  uint8_t m_advLength;</div>
|
|
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> <span class="preprocessor">#if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
|
|
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <span class="keywordtype">bool</span> m_isLegacyAdv;</div>
|
|
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  uint8_t m_sid;</div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  uint8_t m_primPhy;</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  uint8_t m_secPhy;</div>
|
|
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  uint16_t m_periodicItvl;</div>
|
|
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  </div>
|
|
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>  std::vector<uint8_t> m_payload;</div>
|
|
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span> };</div>
|
|
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  </div>
|
|
<div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device_callbacks.html"> 185</a></span> <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="l00186"></a><span class="lineno"> 186</span> <span class="keyword">public</span>:</div>
|
|
<div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <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="l00194"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device_callbacks.html#af6a25e1bb773a147536b1785b2aae606"> 194</a></span>  <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="l00195"></a><span class="lineno"> 195</span> };</div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  </div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> <span class="preprocessor">#endif </span><span class="comment">/* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_OBSERVER */</span><span class="preprocessor"></span></div>
|
|
<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> <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:185</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>
|
|
<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:534</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a1602b70c37fb9a5f2f7ca4eacbf01091"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a1602b70c37fb9a5f2f7ca4eacbf01091">NimBLEAdvertisedDevice::getServiceDataCount</a></div><div class="ttdeci">uint8_t getServiceDataCount()</div><div class="ttdoc">Get the count of advertised service data UUIDS.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:371</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:821</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a1efd77b20e3198ef148282bf75ff3e22"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a1efd77b20e3198ef148282bf75ff3e22">NimBLEAdvertisedDevice::getSecondaryPhy</a></div><div class="ttdeci">uint8_t getSecondaryPhy()</div><div class="ttdoc">Get the primary PHY used by this advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:614</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:73</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:489</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:109</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a3684969e3e10cd0af9ecaf342847ea71"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a3684969e3e10cd0af9ecaf342847ea71">NimBLEAdvertisedDevice::isLegacyAdvertisement</a></div><div class="ttdeci">bool isLegacyAdvertisement()</div><div class="ttdoc">Check if this advertisement is a legacy or extended type.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:855</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 &uuid)</div><div class="ttdoc">Check advertised services for existence of the required UUID.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:455</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:127</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 service data at the index.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:315</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a54917b2644c433977e24a10a63d7431a"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a54917b2644c433977e24a10a63d7431a">NimBLEAdvertisedDevice::isConnectable</a></div><div class="ttdeci">bool isConnectable()</div><div class="ttdoc">Check if this device is advertising as connectable.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:839</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:234</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:572</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a5ca6792d1ee559470ae8edccc1aea20d"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a5ca6792d1ee559470ae8edccc1aea20d">NimBLEAdvertisedDevice::getServiceUUIDCount</a></div><div class="ttdeci">uint8_t getServiceUUIDCount()</div><div class="ttdoc">Get the number of services advertised.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:436</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:554</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a6361e2b275cc45578f1000b5fd1b3c29"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a6361e2b275cc45578f1000b5fd1b3c29">NimBLEAdvertisedDevice::getSetId</a></div><div class="ttdeci">uint8_t getSetId()</div><div class="ttdoc">Get the set ID of the extended advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:591</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:525</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:544</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 <type>.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.h:88</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:91</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a9b4ad695a4f035512d4d17313d8c5d3b"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a9b4ad695a4f035512d4d17313d8c5d3b">NimBLEAdvertisedDevice::getPrimaryPhy</a></div><div class="ttdeci">uint8_t getPrimaryPhy()</div><div class="ttdoc">Get the primary PHY used by this advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:602</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 &uuid, bool skipSizeCheck=false)</div><div class="ttdoc">A template to convert the service data to <type>.</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:60</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:46</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:498</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:387</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:31</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:516</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:728</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:830</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:507</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:201</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:210</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:163</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad9c5b9ffda267ddbcaef6b0f236846f9"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad9c5b9ffda267ddbcaef6b0f236846f9">NimBLEAdvertisedDevice::getPeriodicInterval</a></div><div class="ttdeci">uint16_t getPeriodicInterval()</div><div class="ttdoc">Get the periodic interval of the advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:623</div></div>
|
|
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ae2256f6b4da4c11cf75cb773a6b7f223"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ae2256f6b4da4c11cf75cb773a6b7f223">NimBLEAdvertisedDevice::getTargetAddressCount</a></div><div class="ttdeci">uint8_t getTargetAddressCount()</div><div class="ttdoc">Get the number of target addresses.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertisedDevice.cpp:219</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:181</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:799</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 <type>.</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:266</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:581</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:145</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:774</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:563</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:812</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:471</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>
|
|
<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>
|