esp-nimble-cpp/_nim_b_l_e_advertising_8h_source.html

275 lines
48 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2022-01-15 23:23:57 +01:00
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2022-01-15 23:23:57 +01:00
<title>esp-nimble-cpp: K:/Users/Ryan/Desktop/thermo-git/components/esp-nimble-cpp/src/NimBLEAdvertising.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
2022-01-15 23:23:57 +01:00
<div id="projectname">esp-nimble-cpp
&#160;<span id="projectnumber">1.3.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-01-15 23:23:57 +01:00
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_nim_b_l_e_advertising_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">NimBLEAdvertising.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> * NimBLEAdvertising.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"> * Created: on March 3, 2020</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> * Author H2zero</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * Originally:</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * BLEAdvertising.h</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * Created on: Jun 21, 2017</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> * Author: kolban</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160; </div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#ifndef MAIN_BLEADVERTISING_H_</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor">#define MAIN_BLEADVERTISING_H_</span></div>
2022-01-15 23:23:57 +01:00
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="nimconfig_8h.html">nimconfig.h</a>&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#if defined(CONFIG_BT_ENABLED) &amp;&amp; defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER)</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160; </div>
2022-01-15 23:23:57 +01:00
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#if defined(CONFIG_NIMBLE_CPP_IDF)</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;host/ble_gap.h&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="preprocessor">#include &quot;nimble/nimble/host/include/host/ble_gap.h&quot;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160; </div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="comment">/**** FIX COMPILATION ****/</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#undef min</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#undef max</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">/**************************/</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; </div>
2022-01-15 23:23:57 +01:00
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#include &quot;NimBLEUUID.h&quot;</span></div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; </div>
2022-01-15 23:23:57 +01:00
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160; </div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;<span class="comment">/* COMPATIBILITY - DO NOT USE */</span></div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160;<span class="preprocessor">#define ESP_BLE_ADV_FLAG_LIMIT_DISC (0x01 &lt;&lt; 0)</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#define ESP_BLE_ADV_FLAG_GEN_DISC (0x01 &lt;&lt; 1)</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#define ESP_BLE_ADV_FLAG_BREDR_NOT_SPT (0x01 &lt;&lt; 2)</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#define ESP_BLE_ADV_FLAG_DMT_CONTROLLER_SPT (0x01 &lt;&lt; 3)</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#define ESP_BLE_ADV_FLAG_DMT_HOST_SPT (0x01 &lt;&lt; 4)</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#define ESP_BLE_ADV_FLAG_NON_LIMIT_DISC (0x00 )</span></div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; <span class="comment">/* ************************* */</span></div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; </div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertisement_data.html"> 48</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_nim_b_l_e_advertisement_data.html">NimBLEAdvertisementData</a> {</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="comment">// Only a subset of the possible BLE architected advertisement fields are currently exposed. Others will</span></div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">// be exposed on demand/request or as time permits.</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; <span class="comment">//</span></div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a0f209913ef9f3dfb5be8db39567b4f32">setAppearance</a>(uint16_t appearance);</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a67fd95e586559b73964d5739051f3822">setCompleteServices</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;uuid);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a50a2584346208ef28274eeecc5befffb">setCompleteServices16</a>(<span class="keyword">const</span> std::vector&lt;NimBLEUUID&gt; &amp;v_uuid);</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a712aa09a4d7f2b3cae9b2f1f1be6372f">setCompleteServices32</a>(<span class="keyword">const</span> std::vector&lt;NimBLEUUID&gt; &amp;v_uuid);</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a73766a872477512bd750c773d96ca4e2">setFlags</a>(uint8_t);</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#aa4df88b578782cda2bd77368b50f2d27">setManufacturerData</a>(<span class="keyword">const</span> std::string &amp;data);</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#aa003bc4cf9bff2b2bcac9b742ec97a36">setURI</a>(<span class="keyword">const</span> std::string &amp;uri);</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a885b4ed75dd71c4c19b86048c16350bf">setName</a>(<span class="keyword">const</span> std::string &amp;name);</div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#af52546d7c3b733a831f6232a845bef85">setPartialServices</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;uuid);</div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a50063c7ffa24f0f0407366a450e23ae4">setPartialServices16</a>(<span class="keyword">const</span> std::vector&lt;NimBLEUUID&gt; &amp;v_uuid);</div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a0ff5a72bccd349e551270ceadf528306">setPartialServices32</a>(<span class="keyword">const</span> std::vector&lt;NimBLEUUID&gt; &amp;v_uuid);</div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#aee4fdb5af06fcda9cab9fad3f5bf80d5">setServiceData</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;uuid, <span class="keyword">const</span> std::string &amp;data);</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#ae5b514ad9be6552727f1c7a744a29ae5">setShortName</a>(<span class="keyword">const</span> std::string &amp;name);</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#aec5f567059c4b4fd0f6b5fc74a0ce870">addData</a>(<span class="keyword">const</span> std::string &amp;data); <span class="comment">// Add data to the payload.</span></div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#aec5f567059c4b4fd0f6b5fc74a0ce870">addData</a>(<span class="keywordtype">char</span> * data, <span class="keywordtype">size_t</span> length);</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a480ffc91f212e877ae31ab47190006c3">addTxPower</a>();</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertisement_data.html#a58ba06eb062a47cc58ba2829af8aafa5">setPreferredParams</a>(uint16_t min, uint16_t max);</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; std::string <a class="code" href="class_nim_b_l_e_advertisement_data.html#acbd638708c8b8b4663c09107bc38feb1">getPayload</a>(); <span class="comment">// Retrieve the current advert payload.</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160; </div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a>;</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160; <span class="keywordtype">void</span> setServices(<span class="keyword">const</span> <span class="keywordtype">bool</span> complete, <span class="keyword">const</span> uint8_t size,</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keyword">const</span> std::vector&lt;NimBLEUUID&gt; &amp;v_uuid);</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; std::string m_payload; <span class="comment">// The payload of the advertisement.</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160;}; <span class="comment">// NimBLEAdvertisementData</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; </div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; </div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_advertising.html"> 85</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a> {</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; <a class="code" href="class_nim_b_l_e_advertising.html#abe6258a917243a4567c3d6eece2ddcdd">NimBLEAdvertising</a>();</div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a4f334752ea04223185292fe9ab524b69">addServiceUUID</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;serviceUUID);</div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a4f334752ea04223185292fe9ab524b69">addServiceUUID</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* serviceUUID);</div>
<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a725437c00152ff57ef1e21bdf7be980d">removeServiceUUID</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;serviceUUID);</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertising.html#aeeee5a131b42a4f76010751f4c182e4f">start</a>(uint32_t duration = 0, <span class="keywordtype">void</span> (*<a class="code" href="class_nim_b_l_e_advertising.html#a4de7bf016a086a2d3f6f14ae134678f2">advCompleteCB</a>)(<a class="code" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a> *pAdv) = <span class="keyword">nullptr</span>);</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#ab19c9e9015e812055e3cad29d52ed2ff">stop</a>();</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#aa0d30dfb57670cc8180e17dffddad416">setAppearance</a>(uint16_t appearance);</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#add2ecd09877d7e4548b11ec7cb8c7a47">setName</a>(<span class="keyword">const</span> std::string &amp;name);</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a1eff592870a47b0f62b0f0894efadbd4">setManufacturerData</a>(<span class="keyword">const</span> std::string &amp;data);</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a6495d7c9ad80a8c2a5edf974705f8103">setURI</a>(<span class="keyword">const</span> std::string &amp;uri);</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a994e43e9e4ace6ce64c57e57d0575781">setServiceData</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &amp;uuid, <span class="keyword">const</span> std::string &amp;data);</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a68d54f11b47b9993322efec1d07c3519">setAdvertisementType</a>(uint8_t adv_type);</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#aab512576d8873fbbb631bac8ada19530">setMaxInterval</a>(uint16_t maxinterval);</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a16bd135cab3f06bc0ba81c2aec19cbbc">setMinInterval</a>(uint16_t mininterval);</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#af7083f58717b7e76d90d367f00a0ef08">setAdvertisementData</a>(<a class="code" href="class_nim_b_l_e_advertisement_data.html">NimBLEAdvertisementData</a>&amp; advertisementData);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#aa3da80c7d17a7824484ee254076e4790">setScanFilter</a>(<span class="keywordtype">bool</span> scanRequestWhitelistOnly, <span class="keywordtype">bool</span> connectWhitelistOnly);</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a04a51a0c639a70295a9b671f73b34358">setScanResponseData</a>(<a class="code" href="class_nim_b_l_e_advertisement_data.html">NimBLEAdvertisementData</a>&amp; advertisementData);</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a6fb4d9ad3949928ac83d3e74857ab91f">setScanResponse</a>(<span class="keywordtype">bool</span>);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a3bc158da1f732361df69cf16ca1cfd42">setMinPreferred</a>(uint16_t);</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a3382cdf80f5ae46a52e3b9159f8e1b66">setMaxPreferred</a>(uint16_t);</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#ac4ff0af45d1f7ed5bc208612852bc43a">addTxPower</a>();</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a545b505ea76396c33133d41a78fad5b8">reset</a>();</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_advertising.html#a4de7bf016a086a2d3f6f14ae134678f2">advCompleteCB</a>();</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_advertising.html#ac257ab68520a244cb6494d793f9b6c2a">isAdvertising</a>();</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; </div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_device.html">NimBLEDevice</a>;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; </div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordtype">void</span> onHostSync();</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keyword">static</span> <span class="keywordtype">int</span> handleGapEvent(<span class="keyword">struct</span> ble_gap_event *event, <span class="keywordtype">void</span> *arg);</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; ble_hs_adv_fields m_advData;</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; ble_hs_adv_fields m_scanData;</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; ble_gap_adv_params m_advParams;</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; std::vector&lt;NimBLEUUID&gt; m_serviceUUIDs;</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordtype">bool</span> m_customAdvData;</div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordtype">bool</span> m_customScanResponseData;</div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordtype">bool</span> m_scanResp;</div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordtype">bool</span> m_advDataSet;</div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160; void (*m_advCompCB)(<a class="code" href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a> *pAdv);</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; uint8_t m_slaveItvl[4];</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; uint32_t m_duration;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; std::vector&lt;uint8_t&gt; m_svcData16;</div>
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; std::vector&lt;uint8_t&gt; m_svcData32;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; std::vector&lt;uint8_t&gt; m_svcData128;</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; std::vector&lt;uint8_t&gt; m_name;</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; std::vector&lt;uint8_t&gt; m_mfgData;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; std::vector&lt;uint8_t&gt; m_uri;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;};</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* CONFIG_BT_ENABLED &amp;&amp; CONFIG_BT_NIMBLE_ROLE_BROADCASTER */</span><span class="preprocessor"></span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* MAIN_BLEADVERTISING_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html">NimBLEAdvertisementData</a></div><div class="ttdoc">Advertisement data set by the programmer to be published by the BLE server.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.h:48</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a0f209913ef9f3dfb5be8db39567b4f32"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a0f209913ef9f3dfb5be8db39567b4f32">NimBLEAdvertisementData::setAppearance</a></div><div class="ttdeci">void setAppearance(uint16_t appearance)</div><div class="ttdoc">Set the appearance.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:776</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a0ff5a72bccd349e551270ceadf528306"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a0ff5a72bccd349e551270ceadf528306">NimBLEAdvertisementData::setPartialServices32</a></div><div class="ttdeci">void setPartialServices32(const std::vector&lt; NimBLEUUID &gt; &amp;v_uuid)</div><div class="ttdoc">Set the partial list of services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:885</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a480ffc91f212e877ae31ab47190006c3"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a480ffc91f212e877ae31ab47190006c3">NimBLEAdvertisementData::addTxPower</a></div><div class="ttdeci">void addTxPower()</div><div class="ttdoc">Adds Tx power level to the advertisement data.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:995</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a50063c7ffa24f0f0407366a450e23ae4"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a50063c7ffa24f0f0407366a450e23ae4">NimBLEAdvertisementData::setPartialServices16</a></div><div class="ttdeci">void setPartialServices16(const std::vector&lt; NimBLEUUID &gt; &amp;v_uuid)</div><div class="ttdoc">Set the partial list of services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:876</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a50a2584346208ef28274eeecc5befffb"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a50a2584346208ef28274eeecc5befffb">NimBLEAdvertisementData::setCompleteServices16</a></div><div class="ttdeci">void setCompleteServices16(const std::vector&lt; NimBLEUUID &gt; &amp;v_uuid)</div><div class="ttdoc">Set the complete list of 16 bit services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:849</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a58ba06eb062a47cc58ba2829af8aafa5"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a58ba06eb062a47cc58ba2829af8aafa5">NimBLEAdvertisementData::setPreferredParams</a></div><div class="ttdeci">void setPreferredParams(uint16_t min, uint16_t max)</div><div class="ttdoc">Set the preferred connection interval parameters.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:1009</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a67fd95e586559b73964d5739051f3822"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a67fd95e586559b73964d5739051f3822">NimBLEAdvertisementData::setCompleteServices</a></div><div class="ttdeci">void setCompleteServices(const NimBLEUUID &amp;uuid)</div><div class="ttdoc">Set a single service to advertise as a complete list of services.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:840</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a712aa09a4d7f2b3cae9b2f1f1be6372f"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a712aa09a4d7f2b3cae9b2f1f1be6372f">NimBLEAdvertisementData::setCompleteServices32</a></div><div class="ttdeci">void setCompleteServices32(const std::vector&lt; NimBLEUUID &gt; &amp;v_uuid)</div><div class="ttdoc">Set the complete list of 32 bit services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:858</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a73766a872477512bd750c773d96ca4e2"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a73766a872477512bd750c773d96ca4e2">NimBLEAdvertisementData::setFlags</a></div><div class="ttdeci">void setFlags(uint8_t)</div><div class="ttdoc">Set the advertisement flags.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:791</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_a885b4ed75dd71c4c19b86048c16350bf"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#a885b4ed75dd71c4c19b86048c16350bf">NimBLEAdvertisementData::setName</a></div><div class="ttdeci">void setName(const std::string &amp;name)</div><div class="ttdoc">Set the complete name of this device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:828</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_aa003bc4cf9bff2b2bcac9b742ec97a36"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#aa003bc4cf9bff2b2bcac9b742ec97a36">NimBLEAdvertisementData::setURI</a></div><div class="ttdeci">void setURI(const std::string &amp;uri)</div><div class="ttdoc">Set the URI to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:816</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_aa4df88b578782cda2bd77368b50f2d27"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#aa4df88b578782cda2bd77368b50f2d27">NimBLEAdvertisementData::setManufacturerData</a></div><div class="ttdeci">void setManufacturerData(const std::string &amp;data)</div><div class="ttdoc">Set manufacturer specific data.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:804</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_acbd638708c8b8b4663c09107bc38feb1"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#acbd638708c8b8b4663c09107bc38feb1">NimBLEAdvertisementData::getPayload</a></div><div class="ttdeci">std::string getPayload()</div><div class="ttdoc">Retrieve the payload that is to be advertised.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:1025</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_ae5b514ad9be6552727f1c7a744a29ae5"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#ae5b514ad9be6552727f1c7a744a29ae5">NimBLEAdvertisementData::setShortName</a></div><div class="ttdeci">void setShortName(const std::string &amp;name)</div><div class="ttdoc">Set the short name.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:984</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_aec5f567059c4b4fd0f6b5fc74a0ce870"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#aec5f567059c4b4fd0f6b5fc74a0ce870">NimBLEAdvertisementData::addData</a></div><div class="ttdeci">void addData(const std::string &amp;data)</div><div class="ttdoc">Add data to the payload to be advertised.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:750</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_aee4fdb5af06fcda9cab9fad3f5bf80d5"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#aee4fdb5af06fcda9cab9fad3f5bf80d5">NimBLEAdvertisementData::setServiceData</a></div><div class="ttdeci">void setServiceData(const NimBLEUUID &amp;uuid, const std::string &amp;data)</div><div class="ttdoc">Set the service data (UUID + data)</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:947</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertisement_data_html_af52546d7c3b733a831f6232a845bef85"><div class="ttname"><a href="class_nim_b_l_e_advertisement_data.html#af52546d7c3b733a831f6232a845bef85">NimBLEAdvertisementData::setPartialServices</a></div><div class="ttdeci">void setPartialServices(const NimBLEUUID &amp;uuid)</div><div class="ttdoc">Set a single service to advertise as a partial list of services.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:867</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html"><div class="ttname"><a href="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a></div><div class="ttdoc">Perform and manage BLE advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.h:85</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a04a51a0c639a70295a9b671f73b34358"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a04a51a0c639a70295a9b671f73b34358">NimBLEAdvertising::setScanResponseData</a></div><div class="ttdeci">void setScanResponseData(NimBLEAdvertisementData &amp;advertisementData)</div><div class="ttdoc">Set the advertisement data that is to be published in a scan response.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:370</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a16bd135cab3f06bc0ba81c2aec19cbbc"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a16bd135cab3f06bc0ba81c2aec19cbbc">NimBLEAdvertising::setMinInterval</a></div><div class="ttdeci">void setMinInterval(uint16_t mininterval)</div><div class="ttdoc">Set the minimum advertising interval.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:225</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a1eff592870a47b0f62b0f0894efadbd4"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a1eff592870a47b0f62b0f0894efadbd4">NimBLEAdvertising::setManufacturerData</a></div><div class="ttdeci">void setManufacturerData(const std::string &amp;data)</div><div class="ttdoc">Set the advertised manufacturer data.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:149</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a3382cdf80f5ae46a52e3b9159f8e1b66"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a3382cdf80f5ae46a52e3b9159f8e1b66">NimBLEAdvertising::setMaxPreferred</a></div><div class="ttdeci">void setMaxPreferred(uint16_t)</div><div class="ttdoc">Set the advertised max connection interval preferred by this device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:277</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a3bc158da1f732361df69cf16ca1cfd42"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a3bc158da1f732361df69cf16ca1cfd42">NimBLEAdvertising::setMinPreferred</a></div><div class="ttdeci">void setMinPreferred(uint16_t)</div><div class="ttdoc">Set the advertised min connection interval preferred by this device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:245</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a4de7bf016a086a2d3f6f14ae134678f2"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a4de7bf016a086a2d3f6f14ae134678f2">NimBLEAdvertising::advCompleteCB</a></div><div class="ttdeci">void advCompleteCB()</div><div class="ttdoc">Handles the callback when advertising stops.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:683</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a4f334752ea04223185292fe9ab524b69"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a4f334752ea04223185292fe9ab524b69">NimBLEAdvertising::addServiceUUID</a></div><div class="ttdeci">void addServiceUUID(const NimBLEUUID &amp;serviceUUID)</div><div class="ttdoc">Add a service uuid to exposed list of services.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:80</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a545b505ea76396c33133d41a78fad5b8"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a545b505ea76396c33133d41a78fad5b8">NimBLEAdvertising::reset</a></div><div class="ttdeci">void reset()</div><div class="ttdoc">Stops the current advertising and resets the advertising data to the default values.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:44</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a6495d7c9ad80a8c2a5edf974705f8103"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a6495d7c9ad80a8c2a5edf974705f8103">NimBLEAdvertising::setURI</a></div><div class="ttdeci">void setURI(const std::string &amp;uri)</div><div class="ttdoc">Set the advertised URI.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:161</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a68d54f11b47b9993322efec1d07c3519"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a68d54f11b47b9993322efec1d07c3519">NimBLEAdvertising::setAdvertisementType</a></div><div class="ttdeci">void setAdvertisementType(uint8_t adv_type)</div><div class="ttdoc">Set the type of advertisment to use.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:216</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a6fb4d9ad3949928ac83d3e74857ab91f"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a6fb4d9ad3949928ac83d3e74857ab91f">NimBLEAdvertising::setScanResponse</a></div><div class="ttdeci">void setScanResponse(bool)</div><div class="ttdoc">Set if scan response is available.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:305</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a725437c00152ff57ef1e21bdf7be980d"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a725437c00152ff57ef1e21bdf7be980d">NimBLEAdvertising::removeServiceUUID</a></div><div class="ttdeci">void removeServiceUUID(const NimBLEUUID &amp;serviceUUID)</div><div class="ttdoc">Add a service uuid to exposed list of services.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:100</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_a994e43e9e4ace6ce64c57e57d0575781"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#a994e43e9e4ace6ce64c57e57d0575781">NimBLEAdvertising::setServiceData</a></div><div class="ttdeci">void setServiceData(const NimBLEUUID &amp;uuid, const std::string &amp;data)</div><div class="ttdoc">Set the service data advertised for the UUID.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:175</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_aa0d30dfb57670cc8180e17dffddad416"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#aa0d30dfb57670cc8180e17dffddad416">NimBLEAdvertising::setAppearance</a></div><div class="ttdeci">void setAppearance(uint16_t appearance)</div><div class="ttdoc">Set the device appearance in the advertising data. The codes for distinct appearances can be found he...</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:117</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_aa3da80c7d17a7824484ee254076e4790"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#aa3da80c7d17a7824484ee254076e4790">NimBLEAdvertising::setScanFilter</a></div><div class="ttdeci">void setScanFilter(bool scanRequestWhitelistOnly, bool connectWhitelistOnly)</div><div class="ttdoc">Set the filtering for the scan filter.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:316</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_aab512576d8873fbbb631bac8ada19530"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#aab512576d8873fbbb631bac8ada19530">NimBLEAdvertising::setMaxInterval</a></div><div class="ttdeci">void setMaxInterval(uint16_t maxinterval)</div><div class="ttdoc">Set the maximum advertising interval.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:234</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_ab19c9e9015e812055e3cad29d52ed2ff"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#ab19c9e9015e812055e3cad29d52ed2ff">NimBLEAdvertising::stop</a></div><div class="ttdeci">void stop()</div><div class="ttdoc">Stop advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:666</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_abe6258a917243a4567c3d6eece2ddcdd"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#abe6258a917243a4567c3d6eece2ddcdd">NimBLEAdvertising::NimBLEAdvertising</a></div><div class="ttdeci">NimBLEAdvertising()</div><div class="ttdoc">Construct a default advertising object.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:36</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_ac257ab68520a244cb6494d793f9b6c2a"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#ac257ab68520a244cb6494d793f9b6c2a">NimBLEAdvertising::isAdvertising</a></div><div class="ttdeci">bool isAdvertising()</div><div class="ttdoc">Check if currently advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:694</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_ac4ff0af45d1f7ed5bc208612852bc43a"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#ac4ff0af45d1f7ed5bc208612852bc43a">NimBLEAdvertising::addTxPower</a></div><div class="ttdeci">void addTxPower()</div><div class="ttdoc">Add the transmission power level to the advertisement packet.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:127</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_add2ecd09877d7e4548b11ec7cb8c7a47"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#add2ecd09877d7e4548b11ec7cb8c7a47">NimBLEAdvertising::setName</a></div><div class="ttdeci">void setName(const std::string &amp;name)</div><div class="ttdoc">Set the advertised name of the device.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:137</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_aeeee5a131b42a4f76010751f4c182e4f"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#aeeee5a131b42a4f76010751f4c182e4f">NimBLEAdvertising::start</a></div><div class="ttdeci">bool start(uint32_t duration=0, void(*advCompleteCB)(NimBLEAdvertising *pAdv)=nullptr)</div><div class="ttdoc">Start advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:390</div></div>
<div class="ttc" id="aclass_nim_b_l_e_advertising_html_af7083f58717b7e76d90d367f00a0ef08"><div class="ttname"><a href="class_nim_b_l_e_advertising.html#af7083f58717b7e76d90d367f00a0ef08">NimBLEAdvertising::setAdvertisementData</a></div><div class="ttdeci">void setAdvertisementData(NimBLEAdvertisementData &amp;advertisementData)</div><div class="ttdoc">Set the advertisement data that is to be published in a regular advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:350</div></div>
<div class="ttc" id="aclass_nim_b_l_e_device_html"><div class="ttname"><a href="class_nim_b_l_e_device.html">NimBLEDevice</a></div><div class="ttdoc">A model of a BLE Device from which all the BLE roles are created.</div><div class="ttdef"><b>Definition:</b> NimBLEDevice.h:92</div></div>
<div class="ttc" id="aclass_nim_b_l_e_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>NimBLEAdvertising.h</b></li>
2022-01-15 23:23:57 +01:00
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>