esp-nimble-cpp/_nim_b_l_e_advertised_device_8h_source.html

319 lines
58 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>esp-nimble-cpp: /github/workspace/src/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 id="projectrow">
<td id="projectalign">
<div id="projectname">esp-nimble-cpp<span id="projectnumber">&#160;2.0.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('_nim_b_l_e_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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div class="header">
<div class="headertitle"><div class="title">NimBLEAdvertisedDevice.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Copyright 2020-2024 Ryan Powell &lt;ryan@nable-embedded.io&gt; and</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * esp-nimble-cpp, NimBLE-Arduino contributors.</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> *</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * you may not use this file except in compliance with the License.</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> *</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * See the License for the specific language governing permissions and</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * limitations under the License.</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> */</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#ifndef NIMBLE_CPP_ADVERTISED_DEVICE_H_</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#define NIMBLE_CPP_ADVERTISED_DEVICE_H_</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include &quot;<a class="code" href="nimconfig_8h.html">nimconfig.h</a>&quot;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#if defined(CONFIG_BT_ENABLED) &amp;&amp; defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER)</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor"># include &quot;NimBLEAddress.h&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor"># include &quot;NimBLEScan.h&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor"># include &quot;NimBLEUUID.h&quot;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor"># if defined(CONFIG_NIMBLE_CPP_IDF)</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor"># include &quot;host/ble_hs_adv.h&quot;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor"># include &quot;host/ble_gap.h&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor"># else</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor"># include &quot;nimble/nimble/host/include/host/ble_hs_adv.h&quot;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor"># include &quot;nimble/nimble/host/include/host/ble_gap.h&quot;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="preprocessor"># include &lt;vector&gt;</span></div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_scan.html">NimBLEScan</a>;</div>
<div class="foldopen" id="foldopen00045" data-start="{" data-end="};">
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html"> 45</a></span><span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_advertised_device.html">NimBLEAdvertisedDevice</a> {</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_class" href="class_nim_b_l_e_advertised_device.html">NimBLEAdvertisedDevice</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ab348469f8d9325e6bb619dce9bbd4e24">getAdvType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#acbdfac3f9febbe11d1a1317bc7524810">getAdvFlags</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> uint16_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a778d8b099f7e006d8e213cf638276a81">getAppearance</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> uint16_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ad06e4e81a8d568199d1145f437175749">getAdvInterval</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> uint16_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#accf2225a99742fdeb86a1b4738eac164">getMinInterval</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> uint16_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#aeef5bef4ba2e1afb5f0a6838ab9762d3">getMaxInterval</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a08c0fb778eedde4c4004410d124799f1">getManufacturerDataCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a>&amp; <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#acb3c376962b317b91628fb96ad215923">getAddress</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> std::string <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#aaf936703902681e7af785d7b751e68e0">getManufacturerData</a>(uint8_t index = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> std::string <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a56d07a328ebdea4112087dc02dac4fc2">getURI</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> std::string <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a74be6cf94bbc2e69d04de25a37d28153">getPayloadByType</a>(uint16_t type, uint8_t index = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> std::string <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#acf7ec676680fd4eb800b85779a220b67">getName</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> int8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a749abe7ac0331c0c0f80bc145591a392">getRSSI</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <a class="code hl_class" href="class_nim_b_l_e_scan.html">NimBLEScan</a>* <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a29f6e671bffb6d431d183a63074709b3">getScan</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a99d902853af4e0d5d3b7c7222f11eba0">getServiceDataCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> std::string <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a94ac18b573bace31613339e573076a70">getServiceData</a>(uint8_t index = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> std::string <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a94ac18b573bace31613339e573076a70">getServiceData</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a>&amp; uuid) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <a class="code hl_class" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a52fff852e23293d807a6719527eceff2">getServiceDataUUID</a>(uint8_t index = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <a class="code hl_class" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ae44d13d47f80ed0499be7d84239f7ecb">getServiceUUID</a>(uint8_t index = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#adbdb381a86c556344e676a1e4e654d9f">getServiceUUIDCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#af51c0ff723dcb7bb1bc03460a9f0a25b">getTargetAddress</a>(uint8_t index = 0) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a16738b3a745d29edff39bb4bbf4dfb28">getTargetAddressCount</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> int8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a47b8224e031fd6ab5db93b457ec35b33">getTXPower</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#afb7a089c220e4987852ea1d7a0b5dca4">getAdvLength</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a455ebaf550d1e7e025ada171cb611503">getAddressType</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ad006b08552281a3e6c9d9444e7942709">isAdvertisingService</a>(<span class="keyword">const</span> <a class="code hl_class" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a>&amp; uuid) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a89e65eba150a40326fe1c12f2be9fbea">haveAppearance</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ad68b1b03f59266f4aac9070e5e33d15f">haveManufacturerData</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#aefa0142915204ace20ecb56a539396a2">haveName</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ab91aaf87b4bd03a6599f466b1a6c3299">haveServiceData</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a1e61faae3ba0bdbb1bc197d1ca113f61">haveServiceUUID</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#afde2edb305d4d78804b4750d1bc7aa38">haveTXPower</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a6bb91e0c3b66a54ef9f53496fba1d748">haveConnParams</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a9b6ff6bd4e530dc9b5c76f9333d4420f">haveAdvInterval</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a6e7a4b9be93386e393addaa4a732e516">haveTargetAddress</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a2e127b14ea79ebe88d291d7c8cc91b5a">haveURI</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a8f4fc5c352487f816598796fb5430865">haveType</a>(uint16_t type) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> std::string <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ad46b9300d435e3d20997fbafa5305148">toString</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ab9710a6c3a141b6413d5159dfe4a4040">isConnectable</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a6f55263d4a86d3e2f6b23b71eb68ef98">isScannable</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> <span class="keywordtype">bool</span> <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a49b445130f028b49175d01cd3f6db050">isLegacyAdvertisement</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ad7313053fa990a9aa8f4bc832f35ee13">getSetId</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a927a8418e4078107e5bf457c0bb56cbc">getPrimaryPhy</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> uint8_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a4738e8e37b3509f62b63afb592c9b73e">getSecondaryPhy</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> uint16_t <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a899abd2a02e0c9bf941a998f4184a9ee">getPeriodicInterval</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <span class="keyword">const</span> std::vector&lt;uint8_t&gt;&amp; <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a12971984cf749647c659b659bdfeda5d">getPayload</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">const</span> std::vector&lt;uint8_t&gt;::const_iterator <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#aabb14f9df146ebe6fb50d74a4ec8a878">begin</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keyword">const</span> std::vector&lt;uint8_t&gt;::const_iterator <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a8530d1dfdb57cb2f9fc9a917f12797e6">end</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00110" data-start="{" data-end="}">
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html#a3ce52d33ea39b9c8b6b96cc19a2a3170"> 110</a></span> T <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a3ce52d33ea39b9c8b6b96cc19a2a3170">getManufacturerData</a>(<span class="keywordtype">bool</span> skipSizeCheck = <span class="keyword">false</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> std::string data = <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#aaf936703902681e7af785d7b751e68e0">getManufacturerData</a>();</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <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 id="l00113" name="l00113"></a><span class="lineno"> 113</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* pData = data.data();</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordflow">return</span> *((T*)pData);</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00127" data-start="{" data-end="}">
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html#a2c0a851fe464217ae7ace84148d8849a"> 127</a></span> T <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a2c0a851fe464217ae7ace84148d8849a">getServiceData</a>(uint8_t index = 0, <span class="keywordtype">bool</span> skipSizeCheck = <span class="keyword">false</span>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> std::string data = <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a94ac18b573bace31613339e573076a70">getServiceData</a>(index);</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <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 id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* pData = data.data();</div>
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordflow">return</span> *((T*)pData);</div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> }</div>
</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="foldopen" id="foldopen00144" data-start="{" data-end="}">
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertised_device.html#ae1c188511703f101eaa3995c7b4a5aac"> 144</a></span> T <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#ae1c188511703f101eaa3995c7b4a5aac">getServiceData</a>(<span class="keyword">const</span> <a class="code hl_class" 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>)<span class="keyword"> const </span>{</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> std::string data = <a class="code hl_function" href="class_nim_b_l_e_advertised_device.html#a94ac18b573bace31613339e573076a70">getServiceData</a>(uuid);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <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 id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* pData = data.data();</div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keywordflow">return</span> *((T*)pData);</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> }</div>
</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="class_nim_b_l_e_scan.html">NimBLEScan</a>;</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <a class="code hl_class" href="class_nim_b_l_e_advertised_device.html">NimBLEAdvertisedDevice</a>(<span class="keyword">const</span> ble_gap_event* event, uint8_t eventType);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keywordtype">void</span> update(<span class="keyword">const</span> ble_gap_event* event, uint8_t eventType);</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> uint8_t findAdvField(uint8_t type, uint8_t index = 0, <span class="keywordtype">size_t</span>* data_loc = <span class="keyword">nullptr</span>) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keywordtype">size_t</span> findServiceData(uint8_t index, uint8_t* bytes) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <a class="code hl_class" href="class_nim_b_l_e_address.html">NimBLEAddress</a> m_address{};</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> uint8_t m_advType{};</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> int8_t m_rssi{};</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> uint8_t m_callbackSent{};</div>
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> uint8_t m_advLength{};</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> </div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span><span class="preprocessor"># if CONFIG_BT_NIMBLE_EXT_ADV</span></div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordtype">bool</span> m_isLegacyAdv{};</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> uint8_t m_sid{};</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> uint8_t m_primPhy{};</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> uint8_t m_secPhy{};</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> uint16_t m_periodicItvl{};</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span><span class="preprocessor"># endif</span></div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> std::vector&lt;uint8_t&gt; m_payload;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span>};</div>
</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> </div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span><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 id="l00177" name="l00177"></a><span class="lineno"> 177</span><span class="preprocessor">#endif </span><span class="comment">/* NIMBLE_CPP_ADVERTISED_DEVICE_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:41</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:45</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a08c0fb778eedde4c4004410d124799f1"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a08c0fb778eedde4c4004410d124799f1">NimBLEAdvertisedDevice::getManufacturerDataCount</a></div><div class="ttdeci">uint8_t getManufacturerDataCount() const</div><div class="ttdoc">Get the count of manufacturer data sets.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:200</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a12971984cf749647c659b659bdfeda5d"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a12971984cf749647c659b659bdfeda5d">NimBLEAdvertisedDevice::getPayload</a></div><div class="ttdeci">const std::vector&lt; uint8_t &gt; &amp; getPayload() const</div><div class="ttdoc">Get the payload advertised by the device.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:787</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a16738b3a745d29edff39bb4bbf4dfb28"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a16738b3a745d29edff39bb4bbf4dfb28">NimBLEAdvertisedDevice::getTargetAddressCount</a></div><div class="ttdeci">uint8_t getTargetAddressCount() const</div><div class="ttdoc">Get the number of target addresses.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:258</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a1e61faae3ba0bdbb1bc197d1ca113f61"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a1e61faae3ba0bdbb1bc197d1ca113f61">NimBLEAdvertisedDevice::haveServiceUUID</a></div><div class="ttdeci">bool haveServiceUUID() const</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_a29f6e671bffb6d431d183a63074709b3"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a29f6e671bffb6d431d183a63074709b3">NimBLEAdvertisedDevice::getScan</a></div><div class="ttdeci">NimBLEScan * getScan() const</div><div class="ttdoc">Get the scan object that created this advertised device.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:250</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a2c0a851fe464217ae7ace84148d8849a"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a2c0a851fe464217ae7ace84148d8849a">NimBLEAdvertisedDevice::getServiceData</a></div><div class="ttdeci">T getServiceData(uint8_t index=0, bool skipSizeCheck=false) const</div><div class="ttdoc">A template to convert the service data to &lt;type&gt;.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.h:127</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a2e127b14ea79ebe88d291d7c8cc91b5a"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a2e127b14ea79ebe88d291d7c8cc91b5a">NimBLEAdvertisedDevice::haveURI</a></div><div class="ttdeci">bool haveURI() const</div><div class="ttdoc">Does this advertisement have a URI?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:532</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a3ce52d33ea39b9c8b6b96cc19a2a3170"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a3ce52d33ea39b9c8b6b96cc19a2a3170">NimBLEAdvertisedDevice::getManufacturerData</a></div><div class="ttdeci">T getManufacturerData(bool skipSizeCheck=false) const</div><div class="ttdoc">A template to convert the service data to &lt;type&gt;.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.h:110</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a455ebaf550d1e7e025ada171cb611503"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a455ebaf550d1e7e025ada171cb611503">NimBLEAdvertisedDevice::getAddressType</a></div><div class="ttdeci">uint8_t getAddressType() const</div><div class="ttdoc">Get the advertised device address type.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:746</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a4738e8e37b3509f62b63afb592c9b73e"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a4738e8e37b3509f62b63afb592c9b73e">NimBLEAdvertisedDevice::getSecondaryPhy</a></div><div class="ttdeci">uint8_t getSecondaryPhy() const</div><div class="ttdoc">Get the primary PHY used by this advertisement.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:610</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a47b8224e031fd6ab5db93b457ec35b33"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a47b8224e031fd6ab5db93b457ec35b33">NimBLEAdvertisedDevice::getTXPower</a></div><div class="ttdeci">int8_t getTXPower() const</div><div class="ttdoc">Get the TX Power.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:484</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a49b445130f028b49175d01cd3f6db050"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a49b445130f028b49175d01cd3f6db050">NimBLEAdvertisedDevice::isLegacyAdvertisement</a></div><div class="ttdeci">bool isLegacyAdvertisement() const</div><div class="ttdoc">Check if this advertisement is a legacy or extended type.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:775</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a52fff852e23293d807a6719527eceff2"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a52fff852e23293d807a6719527eceff2">NimBLEAdvertisedDevice::getServiceDataUUID</a></div><div class="ttdeci">NimBLEUUID getServiceDataUUID(uint8_t index=0) const</div><div class="ttdoc">Get the UUID of the service data at the index.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:344</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a56d07a328ebdea4112087dc02dac4fc2"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a56d07a328ebdea4112087dc02dac4fc2">NimBLEAdvertisedDevice::getURI</a></div><div class="ttdeci">std::string getURI() const</div><div class="ttdoc">Get the URI from the advertisement.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:208</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a6bb91e0c3b66a54ef9f53496fba1d748"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a6bb91e0c3b66a54ef9f53496fba1d748">NimBLEAdvertisedDevice::haveConnParams</a></div><div class="ttdeci">bool haveConnParams() const</div><div class="ttdoc">Does this advertisement have preferred connection parameters?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:500</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a6e7a4b9be93386e393addaa4a732e516"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a6e7a4b9be93386e393addaa4a732e516">NimBLEAdvertisedDevice::haveTargetAddress</a></div><div class="ttdeci">bool haveTargetAddress() const</div><div class="ttdoc">Does the advertisement contain a target address?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:548</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a6f55263d4a86d3e2f6b23b71eb68ef98"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a6f55263d4a86d3e2f6b23b71eb68ef98">NimBLEAdvertisedDevice::isScannable</a></div><div class="ttdeci">bool isScannable() const</div><div class="ttdoc">Check if this device is advertising as scannable.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:767</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a749abe7ac0331c0c0f80bc145591a392"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a749abe7ac0331c0c0f80bc145591a392">NimBLEAdvertisedDevice::getRSSI</a></div><div class="ttdeci">int8_t getRSSI() const</div><div class="ttdoc">Get the RSSI.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:242</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a74be6cf94bbc2e69d04de25a37d28153"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a74be6cf94bbc2e69d04de25a37d28153">NimBLEAdvertisedDevice::getPayloadByType</a></div><div class="ttdeci">std::string getPayloadByType(uint16_t type, uint8_t index=0) const</div><div class="ttdoc">Get the data from any type available in the advertisement.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:218</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a778d8b099f7e006d8e213cf638276a81"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a778d8b099f7e006d8e213cf638276a81">NimBLEAdvertisedDevice::getAppearance</a></div><div class="ttdeci">uint16_t getAppearance() const</div><div class="ttdoc">Get the appearance.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:127</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a8530d1dfdb57cb2f9fc9a917f12797e6"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a8530d1dfdb57cb2f9fc9a917f12797e6">NimBLEAdvertisedDevice::end</a></div><div class="ttdeci">const std::vector&lt; uint8_t &gt;::const_iterator end() const</div><div class="ttdoc">Get the end iterator for the payload.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:803</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a899abd2a02e0c9bf941a998f4184a9ee"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a899abd2a02e0c9bf941a998f4184a9ee">NimBLEAdvertisedDevice::getPeriodicInterval</a></div><div class="ttdeci">uint16_t getPeriodicInterval() const</div><div class="ttdoc">Get the periodic interval of the advertisement.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:618</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a89e65eba150a40326fe1c12f2be9fbea"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a89e65eba150a40326fe1c12f2be9fbea">NimBLEAdvertisedDevice::haveAppearance</a></div><div class="ttdeci">bool haveAppearance() const</div><div class="ttdoc">Does this advertisement have an appearance value?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:516</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a8f4fc5c352487f816598796fb5430865"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a8f4fc5c352487f816598796fb5430865">NimBLEAdvertisedDevice::haveType</a></div><div class="ttdeci">bool haveType(uint16_t type) const</div><div class="ttdoc">Does this advertisement have a adv type type?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:540</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a927a8418e4078107e5bf457c0bb56cbc"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a927a8418e4078107e5bf457c0bb56cbc">NimBLEAdvertisedDevice::getPrimaryPhy</a></div><div class="ttdeci">uint8_t getPrimaryPhy() const</div><div class="ttdoc">Get the primary PHY used by this advertisement.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:599</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a94ac18b573bace31613339e573076a70"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a94ac18b573bace31613339e573076a70">NimBLEAdvertisedDevice::getServiceData</a></div><div class="ttdeci">std::string getServiceData(uint8_t index=0) const</div><div class="ttdoc">Get the service data.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:298</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a99d902853af4e0d5d3b7c7222f11eba0"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a99d902853af4e0d5d3b7c7222f11eba0">NimBLEAdvertisedDevice::getServiceDataCount</a></div><div class="ttdeci">uint8_t getServiceDataCount() const</div><div class="ttdoc">Get the count of advertised service data UUIDS.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:394</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_a9b6ff6bd4e530dc9b5c76f9333d4420f"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#a9b6ff6bd4e530dc9b5c76f9333d4420f">NimBLEAdvertisedDevice::haveAdvInterval</a></div><div class="ttdeci">bool haveAdvInterval() const</div><div class="ttdoc">Does this advertisement have have the advertising interval?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:508</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_aabb14f9df146ebe6fb50d74a4ec8a878"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#aabb14f9df146ebe6fb50d74a4ec8a878">NimBLEAdvertisedDevice::begin</a></div><div class="ttdeci">const std::vector&lt; uint8_t &gt;::const_iterator begin() const</div><div class="ttdoc">Get the begin iterator for the payload.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:795</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_aaf936703902681e7af785d7b751e68e0"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#aaf936703902681e7af785d7b751e68e0">NimBLEAdvertisedDevice::getManufacturerData</a></div><div class="ttdeci">std::string getManufacturerData(uint8_t index=0) const</div><div class="ttdoc">Get the manufacturer data.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:192</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ab348469f8d9325e6bb619dce9bbd4e24"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ab348469f8d9325e6bb619dce9bbd4e24">NimBLEAdvertisedDevice::getAdvType</a></div><div class="ttdeci">uint8_t getAdvType() const</div><div class="ttdoc">Get the advertisement type.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:96</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ab91aaf87b4bd03a6599f466b1a6c3299"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ab91aaf87b4bd03a6599f466b1a6c3299">NimBLEAdvertisedDevice::haveServiceData</a></div><div class="ttdeci">bool haveServiceData() const</div><div class="ttdoc">Does this advertisement have a service data value?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:564</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ab9710a6c3a141b6413d5159dfe4a4040"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ab9710a6c3a141b6413d5159dfe4a4040">NimBLEAdvertisedDevice::isConnectable</a></div><div class="ttdeci">bool isConnectable() const</div><div class="ttdoc">Check if this device is advertising as connectable.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:754</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_acb3c376962b317b91628fb96ad215923"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#acb3c376962b317b91628fb96ad215923">NimBLEAdvertisedDevice::getAddress</a></div><div class="ttdeci">const NimBLEAddress &amp; getAddress() const</div><div class="ttdoc">Get the address of the advertising device.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:83</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_acbdfac3f9febbe11d1a1317bc7524810"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#acbdfac3f9febbe11d1a1317bc7524810">NimBLEAdvertisedDevice::getAdvFlags</a></div><div class="ttdeci">uint8_t getAdvFlags() const</div><div class="ttdoc">Get the advertisement flags.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:107</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_accf2225a99742fdeb86a1b4738eac164"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#accf2225a99742fdeb86a1b4738eac164">NimBLEAdvertisedDevice::getMinInterval</a></div><div class="ttdeci">uint16_t getMinInterval() const</div><div class="ttdoc">Get the preferred min connection interval.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:159</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_acf7ec676680fd4eb800b85779a220b67"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#acf7ec676680fd4eb800b85779a220b67">NimBLEAdvertisedDevice::getName</a></div><div class="ttdeci">std::string getName() const</div><div class="ttdoc">Get the advertised name.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:234</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad006b08552281a3e6c9d9444e7942709"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad006b08552281a3e6c9d9444e7942709">NimBLEAdvertisedDevice::isAdvertisingService</a></div><div class="ttdeci">bool isAdvertisingService(const NimBLEUUID &amp;uuid) const</div><div class="ttdoc">Check advertised services for existence of the required UUID.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:469</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad06e4e81a8d568199d1145f437175749"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad06e4e81a8d568199d1145f437175749">NimBLEAdvertisedDevice::getAdvInterval</a></div><div class="ttdeci">uint16_t getAdvInterval() const</div><div class="ttdoc">Get the advertisement interval.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:143</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad46b9300d435e3d20997fbafa5305148"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad46b9300d435e3d20997fbafa5305148">NimBLEAdvertisedDevice::toString</a></div><div class="ttdeci">std::string toString() const</div><div class="ttdoc">Create a string representation of this device.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:690</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad68b1b03f59266f4aac9070e5e33d15f"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad68b1b03f59266f4aac9070e5e33d15f">NimBLEAdvertisedDevice::haveManufacturerData</a></div><div class="ttdeci">bool haveManufacturerData() const</div><div class="ttdoc">Does this advertisement have manufacturer data?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:524</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ad7313053fa990a9aa8f4bc832f35ee13"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ad7313053fa990a9aa8f4bc832f35ee13">NimBLEAdvertisedDevice::getSetId</a></div><div class="ttdeci">uint8_t getSetId() const</div><div class="ttdoc">Get the set ID of the extended advertisement.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:589</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_adbdb381a86c556344e676a1e4e654d9f"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#adbdb381a86c556344e676a1e4e654d9f">NimBLEAdvertisedDevice::getServiceUUIDCount</a></div><div class="ttdeci">uint8_t getServiceUUIDCount() const</div><div class="ttdoc">Get the number of services advertised.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:453</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ae1c188511703f101eaa3995c7b4a5aac"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ae1c188511703f101eaa3995c7b4a5aac">NimBLEAdvertisedDevice::getServiceData</a></div><div class="ttdeci">T getServiceData(const NimBLEUUID &amp;uuid, bool skipSizeCheck=false) const</div><div class="ttdoc">A template to convert the service data to &lt;type&gt;.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.h:144</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_ae44d13d47f80ed0499be7d84239f7ecb"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#ae44d13d47f80ed0499be7d84239f7ecb">NimBLEAdvertisedDevice::getServiceUUID</a></div><div class="ttdeci">NimBLEUUID getServiceUUID(uint8_t index=0) const</div><div class="ttdoc">Get the Service UUID.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:407</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_aeef5bef4ba2e1afb5f0a6838ab9762d3"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#aeef5bef4ba2e1afb5f0a6838ab9762d3">NimBLEAdvertisedDevice::getMaxInterval</a></div><div class="ttdeci">uint16_t getMaxInterval() const</div><div class="ttdoc">Get the preferred max connection interval.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:175</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_aefa0142915204ace20ecb56a539396a2"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#aefa0142915204ace20ecb56a539396a2">NimBLEAdvertisedDevice::haveName</a></div><div class="ttdeci">bool haveName() const</div><div class="ttdoc">Does this advertisement have a name value?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:556</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_af51c0ff723dcb7bb1bc03460a9f0a25b"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#af51c0ff723dcb7bb1bc03460a9f0a25b">NimBLEAdvertisedDevice::getTargetAddress</a></div><div class="ttdeci">NimBLEAddress getTargetAddress(uint8_t index=0) const</div><div class="ttdoc">Get the target address at the index.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:270</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_afb7a089c220e4987852ea1d7a0b5dca4"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#afb7a089c220e4987852ea1d7a0b5dca4">NimBLEAdvertisedDevice::getAdvLength</a></div><div class="ttdeci">uint8_t getAdvLength() const</div><div class="ttdoc">Get the length of the advertisement data in the payload.</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:734</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertised_device_html_afde2edb305d4d78804b4750d1bc7aa38"><div class="ttname"><a href="class_nim_b_l_e_advertised_device.html#afde2edb305d4d78804b4750d1bc7aa38">NimBLEAdvertisedDevice::haveTXPower</a></div><div class="ttdeci">bool haveTXPower() const</div><div class="ttdoc">Does this advertisement have a transmission power value?</div><div class="ttdef"><b>Definition</b> NimBLEAdvertisedDevice.cpp:580</div></div>
<div class="ttc" id="aclass_nim_b_l_e_scan_html"><div class="ttname"><a href="class_nim_b_l_e_scan.html">NimBLEScan</a></div><div class="ttdoc">Perform and manage BLE scans.</div><div class="ttdef"><b>Definition</b> NimBLEScan.h:67</div></div>
<div class="ttc" id="aclass_nim_b_l_e_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:41</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.8 </li>
</ul>
</div>
</body>
</html>