mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-12-26 04:30:46 +01:00
283 lines
54 KiB
HTML
283 lines
54 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
|
<title>esp-nimble-cpp: K:/Users/Ryan/Desktop/test_idf/components/esp-nimble-cpp/src/NimBLEExtAdvertising.h Source File</title>
|
||
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="jquery.js"></script>
|
||
|
<script type="text/javascript" src="dynsections.js"></script>
|
||
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="resize.js"></script>
|
||
|
<script type="text/javascript" src="navtreedata.js"></script>
|
||
|
<script type="text/javascript" src="navtree.js"></script>
|
||
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
||
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
||
|
<script type="text/javascript" src="search/search.js"></script>
|
||
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||
|
<div id="titlearea">
|
||
|
<table cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr style="height: 56px;">
|
||
|
<td id="projectalign" style="padding-left: 0.5em;">
|
||
|
<div id="projectname">esp-nimble-cpp
|
||
|
 <span id="projectnumber">1.4.0</span>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.9.1 -->
|
||
|
<script type="text/javascript">
|
||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
||
|
/* @license-end */
|
||
|
</script>
|
||
|
<script type="text/javascript" src="menudata.js"></script>
|
||
|
<script type="text/javascript" src="menu.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
|
$(function() {
|
||
|
initMenu('',true,false,'search.php','Search');
|
||
|
$(document).ready(function() { init_search(); });
|
||
|
});
|
||
|
/* @license-end */</script>
|
||
|
<div id="main-nav"></div>
|
||
|
</div><!-- top -->
|
||
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||
|
<div id="nav-tree">
|
||
|
<div id="nav-tree-contents">
|
||
|
<div id="nav-sync" class="sync"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div id="splitbar" style="-moz-user-select:none;"
|
||
|
class="ui-resizable-handle">
|
||
|
</div>
|
||
|
</div>
|
||
|
<script type="text/javascript">
|
||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
|
$(document).ready(function(){initNavTree('_nim_b_l_e_ext_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">NimBLEExtAdvertising.h</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/*</span></div>
|
||
|
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * NimBLEExtAdvertising.h</span></div>
|
||
|
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div>
|
||
|
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Created: on February 6, 2022</span></div>
|
||
|
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Author H2zero</span></div>
|
||
|
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> */</span></div>
|
||
|
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>  </div>
|
||
|
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#ifndef MAIN_BLEEXTADVERTISING_H_</span></div>
|
||
|
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#define MAIN_BLEEXTADVERTISING_H_</span></div>
|
||
|
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include "<a class="code" href="nimconfig_8h.html">nimconfig.h</a>"</span></div>
|
||
|
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#if defined(CONFIG_BT_ENABLED) && \</span></div>
|
||
|
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor"> defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER) && \</span></div>
|
||
|
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor"> CONFIG_BT_NIMBLE_EXT_ADV</span></div>
|
||
|
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  </div>
|
||
|
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor"># if defined(CONFIG_NIMBLE_CPP_IDF)</span></div>
|
||
|
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"># include "host/ble_gap.h"</span></div>
|
||
|
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"># else</span></div>
|
||
|
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor"># include "nimble/nimble/host/include/host/ble_gap.h"</span></div>
|
||
|
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor"># endif</span></div>
|
||
|
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>  </div>
|
||
|
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">/**** FIX COMPILATION ****/</span></div>
|
||
|
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#undef min</span></div>
|
||
|
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#undef max</span></div>
|
||
|
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">/**************************/</span></div>
|
||
|
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>  </div>
|
||
|
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "NimBLEAddress.h"</span></div>
|
||
|
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "NimBLEUUID.h"</span></div>
|
||
|
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  </div>
|
||
|
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <vector></span></div>
|
||
|
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  </div>
|
||
|
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_ext_advertising_callbacks.html">NimBLEExtAdvertisingCallbacks</a>;</div>
|
||
|
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  </div>
|
||
|
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
|
||
|
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_ext_advertisement.html"> 37</a></span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_ext_advertisement.html">NimBLEExtAdvertisement</a> {</div>
|
||
|
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">public</span>:</div>
|
||
|
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a9e739c3117da31c486f8f4dd8d273c9c">NimBLEExtAdvertisement</a>(uint8_t priPhy = BLE_HCI_LE_PHY_1M,</div>
|
||
|
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  uint8_t secPhy = BLE_HCI_LE_PHY_1M);</div>
|
||
|
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a852b96ea8e349caea04941adbe6d24b4">setAppearance</a>(uint16_t appearance);</div>
|
||
|
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a01f8e18204071c11eb47ab243893fc53">setCompleteServices</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &uuid);</div>
|
||
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a0a1f0c1facf52f3688b53158e95153b6">setCompleteServices16</a>(<span class="keyword">const</span> std::vector<NimBLEUUID> &v_uuid);</div>
|
||
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a31ef2860f84d44a110f2a6d2d8eda3fc">setCompleteServices32</a>(<span class="keyword">const</span> std::vector<NimBLEUUID> &v_uuid);</div>
|
||
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a5536d30615b87b68ec0c0f01292f5df9">setFlags</a>(uint8_t flag);</div>
|
||
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a5e90a75173354fe9c6959004eb43b20a">setManufacturerData</a>(<span class="keyword">const</span> std::string &data);</div>
|
||
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#af25522e956cfeb64bd6beca881d8786e">setURI</a>(<span class="keyword">const</span> std::string &uri);</div>
|
||
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a7d7d57268d7c54fe5492e92bc7af33d8">setName</a>(<span class="keyword">const</span> std::string &name);</div>
|
||
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#ab76aa4b9fb743e5269cfbbae8215d8a8">setPartialServices</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &uuid);</div>
|
||
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a747ef73a02df72709cf9bd89aabc08b3">setPartialServices16</a>(<span class="keyword">const</span> std::vector<NimBLEUUID> &v_uuid);</div>
|
||
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#ad3bd08736cc70700c00432ec9ccfe94d">setPartialServices32</a>(<span class="keyword">const</span> std::vector<NimBLEUUID> &v_uuid);</div>
|
||
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a1a4fd6883b11c339e397fc52f75c9ebb">setServiceData</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> &uuid, <span class="keyword">const</span> std::string &data);</div>
|
||
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a6220b378a1f2361c6dc76ba125936c51">setShortName</a>(<span class="keyword">const</span> std::string &name);</div>
|
||
|
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a08a31a938ccd10fad61e1115c1db6274">setData</a>(<span class="keyword">const</span> uint8_t * data, <span class="keywordtype">size_t</span> length);</div>
|
||
|
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a74d0b2a236d144c5bce05536ec6b8509">addData</a>(<span class="keyword">const</span> std::string &data);</div>
|
||
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a74d0b2a236d144c5bce05536ec6b8509">addData</a>(<span class="keyword">const</span> uint8_t * data, <span class="keywordtype">size_t</span> length);</div>
|
||
|
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#ac9f82eb0112544b977eb1947ed308525">addTxPower</a>();</div>
|
||
|
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#abb66ffe5783f91f03301fc705701569f">setPreferredParams</a>(uint16_t min, uint16_t max);</div>
|
||
|
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a6a0bcbde65ccb9e49aa93d31514c8225">setLegacyAdvertising</a>(<span class="keywordtype">bool</span> val);</div>
|
||
|
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a6162f7b7692b5ddabf7e015893b0ffa2">setConnectable</a>(<span class="keywordtype">bool</span> val);</div>
|
||
|
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a07b1589ad58a9e09b6ba7269fec87df0">setScannable</a>(<span class="keywordtype">bool</span> val);</div>
|
||
|
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#ae9777a0c544be6c674f4e39d56e930b8">setMinInterval</a>(uint32_t mininterval);</div>
|
||
|
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a4c339022b5523d20cc7fa956c5dbe1be">setMaxInterval</a>(uint32_t maxinterval);</div>
|
||
|
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#ad8522542b90067e3a53076823d2087c3">setPrimaryPhy</a>(uint8_t phy);</div>
|
||
|
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#aaa47ca630ab01d75bdea8d252d10b506">setSecondaryPhy</a>(uint8_t phy);</div>
|
||
|
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a24034d49c9ebadd947db1ef839c8b138">setScanFilter</a>(<span class="keywordtype">bool</span> scanRequestWhitelistOnly, <span class="keywordtype">bool</span> connectWhitelistOnly);</div>
|
||
|
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a52ee2ff1ccd011ed3410d52c0518728e">setDirectedPeer</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> & addr);</div>
|
||
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a2b29a03b9a8b3a30245ff5468f239887">setDirected</a>(<span class="keywordtype">bool</span> val, <span class="keywordtype">bool</span> high_duty = <span class="keyword">true</span>);</div>
|
||
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a3700ef4fd9078cf6dfd8c1eea4c520ba">setAnonymous</a>(<span class="keywordtype">bool</span> val);</div>
|
||
|
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#ab6103c5e86949d0e334101353b109775">setPrimaryChannels</a>(<span class="keywordtype">bool</span> ch37, <span class="keywordtype">bool</span> ch38, <span class="keywordtype">bool</span> ch39);</div>
|
||
|
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a63c2f5900752edad428304c5342b8458">setTxPower</a>(int8_t dbm);</div>
|
||
|
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a02fe1652f994e5bf76dc03381e47b39e">setAddress</a>(<span class="keyword">const</span> <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> & addr);</div>
|
||
|
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#aaf6c44bc23f03a72bc02c3d45a9adf1d">enableScanRequestCallback</a>(<span class="keywordtype">bool</span> enable);</div>
|
||
|
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#a1391be9ee1b2ba1dc0548f2431b1d3af">clearData</a>();</div>
|
||
|
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="keywordtype">size_t</span> <a class="code" href="class_nim_b_l_e_ext_advertisement.html#aec383f3f61780ee5bda3599543c84dd8">getDataSize</a>();</div>
|
||
|
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  </div>
|
||
|
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="keyword">private</span>:</div>
|
||
|
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a>;</div>
|
||
|
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  </div>
|
||
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <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="l00081"></a><span class="lineno"> 81</span>  <span class="keyword">const</span> std::vector<NimBLEUUID> &v_uuid);</div>
|
||
|
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  </div>
|
||
|
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  std::vector<uint8_t> m_payload;</div>
|
||
|
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  ble_gap_ext_adv_params m_params;</div>
|
||
|
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> m_advAddress;</div>
|
||
|
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> }; <span class="comment">// NimBLEExtAdvertisement</span></div>
|
||
|
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  </div>
|
||
|
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  </div>
|
||
|
<div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_ext_advertising.html"> 92</a></span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a> {</div>
|
||
|
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">public</span>:</div>
|
||
|
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_ext_advertising.html#afe321b856d785b78242b2ea020a96af3"> 97</a></span>  <a class="code" href="class_nim_b_l_e_ext_advertising.html#afe321b856d785b78242b2ea020a96af3">NimBLEExtAdvertising</a>() :m_advStatus(CONFIG_BT_NIMBLE_MAX_EXT_ADV_INSTANCES + 1, false) {}</div>
|
||
|
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="class_nim_b_l_e_ext_advertising.html#a477c57db99ce3b5e987d6838b661808f">~NimBLEExtAdvertising</a>();</div>
|
||
|
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#a8044a281a37f4d7c96166ce6f0851159">start</a>(uint8_t inst_id, <span class="keywordtype">int</span> duration = 0, <span class="keywordtype">int</span> max_events = 0);</div>
|
||
|
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#a321fb75a0ffacedfb54da4cc00484b7c">setInstanceData</a>(uint8_t inst_id, <a class="code" href="class_nim_b_l_e_ext_advertisement.html">NimBLEExtAdvertisement</a>& adv);</div>
|
||
|
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#a9395a0087e96329591ed2515cc21456b">setScanResponseData</a>(uint8_t inst_id, <a class="code" href="class_nim_b_l_e_ext_advertisement.html">NimBLEExtAdvertisement</a> & data);</div>
|
||
|
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#af7f4225f33f03d17efba1d4de0684eef">removeInstance</a>(uint8_t inst_id);</div>
|
||
|
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#a8c4df0be35301c90a39491b9e98d3e24">removeAll</a>();</div>
|
||
|
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#a3ea2e93f8c3ce4498d30e4dac7b29109">stop</a>(uint8_t inst_id);</div>
|
||
|
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#a3ea2e93f8c3ce4498d30e4dac7b29109">stop</a>();</div>
|
||
|
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#a88ebe0b664cf22449e1a4311fc3b9b01">isActive</a>(uint8_t inst_id);</div>
|
||
|
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordtype">bool</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#abd7d35653a6831e75700eb5ac9ab5789">isAdvertising</a>();</div>
|
||
|
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertising.html#add623162d46c952d692e26888c9f8826">setCallbacks</a>(<a class="code" href="class_nim_b_l_e_ext_advertising_callbacks.html">NimBLEExtAdvertisingCallbacks</a>* callbacks,</div>
|
||
|
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  <span class="keywordtype">bool</span> deleteCallbacks = <span class="keyword">true</span>);</div>
|
||
|
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  </div>
|
||
|
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="keyword">private</span>:</div>
|
||
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  <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="l00113"></a><span class="lineno"> 113</span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_server.html">NimBLEServer</a>;</div>
|
||
|
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  </div>
|
||
|
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordtype">void</span> onHostSync();</div>
|
||
|
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <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>  </div>
|
||
|
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  <span class="keywordtype">bool</span> m_scanResp;</div>
|
||
|
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordtype">bool</span> m_deleteCallbacks;</div>
|
||
|
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="class_nim_b_l_e_ext_advertising_callbacks.html">NimBLEExtAdvertisingCallbacks</a>* m_pCallbacks;</div>
|
||
|
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  ble_gap_ext_adv_params m_advParams;</div>
|
||
|
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  std::vector<bool> m_advStatus;</div>
|
||
|
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> };</div>
|
||
|
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  </div>
|
||
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  </div>
|
||
|
<div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="class_nim_b_l_e_ext_advertising_callbacks.html"> 129</a></span> <span class="keyword">class </span><a class="code" href="class_nim_b_l_e_ext_advertising_callbacks.html">NimBLEExtAdvertisingCallbacks</a> {</div>
|
||
|
<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">public</span>:</div>
|
||
|
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">virtual</span> ~<a class="code" href="class_nim_b_l_e_ext_advertising_callbacks.html">NimBLEExtAdvertisingCallbacks</a>() {};</div>
|
||
|
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  </div>
|
||
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertising_callbacks.html#a07004fd4e849aa8e9bd7106cbf6ab94b">onStopped</a>(<a class="code" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a> *pAdv, <span class="keywordtype">int</span> reason, uint8_t inst_id);</div>
|
||
|
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  </div>
|
||
|
<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_nim_b_l_e_ext_advertising_callbacks.html#a92af7bd791095cf91438b7af4c26263f">onScanRequest</a>(<a class="code" href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a> *pAdv, uint8_t inst_id, <a class="code" href="class_nim_b_l_e_address.html">NimBLEAddress</a> addr);</div>
|
||
|
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> }; <span class="comment">// NimBLEExtAdvertisingCallbacks</span></div>
|
||
|
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  </div>
|
||
|
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="preprocessor">#endif </span><span class="comment">/* CONFIG_BT_ENABLED && CONFIG_BT_NIMBLE_ROLE_BROADCASTER && CONFIG_BT_NIMBLE_EXT_ADV */</span><span class="preprocessor"></span></div>
|
||
|
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> <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_address_html"><div class="ttname"><a href="class_nim_b_l_e_address.html">NimBLEAddress</a></div><div class="ttdoc">A BLE device address.</div><div class="ttdef"><b>Definition:</b> NimBLEAddress.h:39</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_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:96</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html">NimBLEExtAdvertisement</a></div><div class="ttdoc">Extended advertisement data.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.h:37</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a01f8e18204071c11eb47ab243893fc53"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a01f8e18204071c11eb47ab243893fc53">NimBLEExtAdvertisement::setCompleteServices</a></div><div class="ttdeci">void setCompleteServices(const NimBLEUUID &uuid)</div><div class="ttdoc">Set a single service to advertise as a complete list of services.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:694</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a02fe1652f994e5bf76dc03381e47b39e"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a02fe1652f994e5bf76dc03381e47b39e">NimBLEExtAdvertisement::setAddress</a></div><div class="ttdeci">void setAddress(const NimBLEAddress &addr)</div><div class="ttdoc">Set the address to use for this advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:446</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a07b1589ad58a9e09b6ba7269fec87df0"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a07b1589ad58a9e09b6ba7269fec87df0">NimBLEExtAdvertisement::setScannable</a></div><div class="ttdeci">void setScannable(bool val)</div><div class="ttdoc">Sets wether the advertisement has scan response data available.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:414</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a08a31a938ccd10fad61e1115c1db6274"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a08a31a938ccd10fad61e1115c1db6274">NimBLEExtAdvertisement::setData</a></div><div class="ttdeci">void setData(const uint8_t *data, size_t length)</div><div class="ttdoc">Set the advertisement data.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:599</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a0a1f0c1facf52f3688b53158e95153b6"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a0a1f0c1facf52f3688b53158e95153b6">NimBLEExtAdvertisement::setCompleteServices16</a></div><div class="ttdeci">void setCompleteServices16(const std::vector< NimBLEUUID > &v_uuid)</div><div class="ttdoc">Set the complete list of 16 bit services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:703</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a1391be9ee1b2ba1dc0548f2431b1d3af"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a1391be9ee1b2ba1dc0548f2431b1d3af">NimBLEExtAdvertisement::clearData</a></div><div class="ttdeci">void clearData()</div><div class="ttdoc">Clears the data stored in this instance, does not change settings.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:579</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a1a4fd6883b11c339e397fc52f75c9ebb"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a1a4fd6883b11c339e397fc52f75c9ebb">NimBLEExtAdvertisement::setServiceData</a></div><div class="ttdeci">void setServiceData(const NimBLEUUID &uuid, const std::string &data)</div><div class="ttdoc">Set the service data (UUID + data)</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:801</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a24034d49c9ebadd947db1ef839c8b138"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a24034d49c9ebadd947db1ef839c8b138">NimBLEExtAdvertisement::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> NimBLEExtAdvertising.cpp:471</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a2b29a03b9a8b3a30245ff5468f239887"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a2b29a03b9a8b3a30245ff5468f239887">NimBLEExtAdvertisement::setDirected</a></div><div class="ttdeci">void setDirected(bool val, bool high_duty=true)</div><div class="ttdoc">Enable or disable direct advertisements to the peer set with NimBLEExtAdvertisement::setDirectedPeer</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:508</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a31ef2860f84d44a110f2a6d2d8eda3fc"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a31ef2860f84d44a110f2a6d2d8eda3fc">NimBLEExtAdvertisement::setCompleteServices32</a></div><div class="ttdeci">void setCompleteServices32(const std::vector< NimBLEUUID > &v_uuid)</div><div class="ttdoc">Set the complete list of 32 bit services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:712</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a3700ef4fd9078cf6dfd8c1eea4c520ba"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a3700ef4fd9078cf6dfd8c1eea4c520ba">NimBLEExtAdvertisement::setAnonymous</a></div><div class="ttdeci">void setAnonymous(bool val)</div><div class="ttdoc">Sets whether the advertisement should be anonymous.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:561</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a4c339022b5523d20cc7fa956c5dbe1be"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a4c339022b5523d20cc7fa956c5dbe1be">NimBLEExtAdvertisement::setMaxInterval</a></div><div class="ttdeci">void setMaxInterval(uint32_t maxinterval)</div><div class="ttdoc">Set the maximum advertising interval.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:527</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a52ee2ff1ccd011ed3410d52c0518728e"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a52ee2ff1ccd011ed3410d52c0518728e">NimBLEExtAdvertisement::setDirectedPeer</a></div><div class="ttdeci">void setDirectedPeer(const NimBLEAddress &addr)</div><div class="ttdoc">Sets the peer to directly advertise to.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:495</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a5536d30615b87b68ec0c0f01292f5df9"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a5536d30615b87b68ec0c0f01292f5df9">NimBLEExtAdvertisement::setFlags</a></div><div class="ttdeci">void setFlags(uint8_t flag)</div><div class="ttdoc">Set the advertisement flags.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:645</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a5e90a75173354fe9c6959004eb43b20a"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a5e90a75173354fe9c6959004eb43b20a">NimBLEExtAdvertisement::setManufacturerData</a></div><div class="ttdeci">void setManufacturerData(const std::string &data)</div><div class="ttdoc">Set manufacturer specific data.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:658</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a6162f7b7692b5ddabf7e015893b0ffa2"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a6162f7b7692b5ddabf7e015893b0ffa2">NimBLEExtAdvertisement::setConnectable</a></div><div class="ttdeci">void setConnectable(bool val)</div><div class="ttdoc">Sets wether this advertisement should advertise as a connectable device.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:435</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a6220b378a1f2361c6dc76ba125936c51"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a6220b378a1f2361c6dc76ba125936c51">NimBLEExtAdvertisement::setShortName</a></div><div class="ttdeci">void setShortName(const std::string &name)</div><div class="ttdoc">Set the short name.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:838</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a63c2f5900752edad428304c5342b8458"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a63c2f5900752edad428304c5342b8458">NimBLEExtAdvertisement::setTxPower</a></div><div class="ttdeci">void setTxPower(int8_t dbm)</div><div class="ttdoc">Sets the transmission power level for this advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:426</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a6a0bcbde65ccb9e49aa93d31514c8225"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a6a0bcbde65ccb9e49aa93d31514c8225">NimBLEExtAdvertisement::setLegacyAdvertising</a></div><div class="ttdeci">void setLegacyAdvertising(bool val)</div><div class="ttdoc">Sets wether the advertisement should use legacy (BLE 4.0, 31 bytes max) advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:405</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a747ef73a02df72709cf9bd89aabc08b3"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a747ef73a02df72709cf9bd89aabc08b3">NimBLEExtAdvertisement::setPartialServices16</a></div><div class="ttdeci">void setPartialServices16(const std::vector< NimBLEUUID > &v_uuid)</div><div class="ttdoc">Set the partial list of services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:730</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a74d0b2a236d144c5bce05536ec6b8509"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a74d0b2a236d144c5bce05536ec6b8509">NimBLEExtAdvertisement::addData</a></div><div class="ttdeci">void addData(const std::string &data)</div><div class="ttdoc">Add data to the payload to be advertised.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:608</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a7d7d57268d7c54fe5492e92bc7af33d8"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a7d7d57268d7c54fe5492e92bc7af33d8">NimBLEExtAdvertisement::setName</a></div><div class="ttdeci">void setName(const std::string &name)</div><div class="ttdoc">Set the complete name of this device.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:682</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a852b96ea8e349caea04941adbe6d24b4"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a852b96ea8e349caea04941adbe6d24b4">NimBLEExtAdvertisement::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> NimBLEExtAdvertising.cpp:630</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_a9e739c3117da31c486f8f4dd8d273c9c"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#a9e739c3117da31c486f8f4dd8d273c9c">NimBLEExtAdvertisement::NimBLEExtAdvertisement</a></div><div class="ttdeci">NimBLEExtAdvertisement(uint8_t priPhy=BLE_HCI_LE_PHY_1M, uint8_t secPhy=BLE_HCI_LE_PHY_1M)</div><div class="ttdoc">Construct a BLE extended advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:390</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_aaa47ca630ab01d75bdea8d252d10b506"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#aaa47ca630ab01d75bdea8d252d10b506">NimBLEExtAdvertisement::setSecondaryPhy</a></div><div class="ttdeci">void setSecondaryPhy(uint8_t phy)</div><div class="ttdoc">Set the secondary advertising PHY to use.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:550</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_aaf6c44bc23f03a72bc02c3d45a9adf1d"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#aaf6c44bc23f03a72bc02c3d45a9adf1d">NimBLEExtAdvertisement::enableScanRequestCallback</a></div><div class="ttdeci">void enableScanRequestCallback(bool enable)</div><div class="ttdoc">Sets whether the scan response request callback should be called.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:570</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_ab6103c5e86949d0e334101353b109775"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#ab6103c5e86949d0e334101353b109775">NimBLEExtAdvertisement::setPrimaryChannels</a></div><div class="ttdeci">void setPrimaryChannels(bool ch37, bool ch38, bool ch39)</div><div class="ttdoc">Sets The primary channels to advertise on.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:461</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_ab76aa4b9fb743e5269cfbbae8215d8a8"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#ab76aa4b9fb743e5269cfbbae8215d8a8">NimBLEExtAdvertisement::setPartialServices</a></div><div class="ttdeci">void setPartialServices(const NimBLEUUID &uuid)</div><div class="ttdoc">Set a single service to advertise as a partial list of services.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:721</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_abb66ffe5783f91f03301fc705701569f"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#abb66ffe5783f91f03301fc705701569f">NimBLEExtAdvertisement::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> NimBLEExtAdvertising.cpp:859</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_ac9f82eb0112544b977eb1947ed308525"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#ac9f82eb0112544b977eb1947ed308525">NimBLEExtAdvertisement::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> NimBLEExtAdvertising.cpp:849</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_ad3bd08736cc70700c00432ec9ccfe94d"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#ad3bd08736cc70700c00432ec9ccfe94d">NimBLEExtAdvertisement::setPartialServices32</a></div><div class="ttdeci">void setPartialServices32(const std::vector< NimBLEUUID > &v_uuid)</div><div class="ttdoc">Set the partial list of services to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:739</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_ad8522542b90067e3a53076823d2087c3"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#ad8522542b90067e3a53076823d2087c3">NimBLEExtAdvertisement::setPrimaryPhy</a></div><div class="ttdeci">void setPrimaryPhy(uint8_t phy)</div><div class="ttdoc">Set the primary advertising PHY to use.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:538</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_ae9777a0c544be6c674f4e39d56e930b8"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#ae9777a0c544be6c674f4e39d56e930b8">NimBLEExtAdvertisement::setMinInterval</a></div><div class="ttdeci">void setMinInterval(uint32_t mininterval)</div><div class="ttdoc">Set the minimum advertising interval.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:518</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_aec383f3f61780ee5bda3599543c84dd8"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#aec383f3f61780ee5bda3599543c84dd8">NimBLEExtAdvertisement::getDataSize</a></div><div class="ttdeci">size_t getDataSize()</div><div class="ttdoc">Get the size of the current data.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:588</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertisement_html_af25522e956cfeb64bd6beca881d8786e"><div class="ttname"><a href="class_nim_b_l_e_ext_advertisement.html#af25522e956cfeb64bd6beca881d8786e">NimBLEExtAdvertisement::setURI</a></div><div class="ttdeci">void setURI(const std::string &uri)</div><div class="ttdoc">Set the URI to advertise.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:670</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_callbacks_html"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising_callbacks.html">NimBLEExtAdvertisingCallbacks</a></div><div class="ttdoc">Callbacks associated with NimBLEExtAdvertising class.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.h:129</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_callbacks_html_a07004fd4e849aa8e9bd7106cbf6ab94b"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising_callbacks.html#a07004fd4e849aa8e9bd7106cbf6ab94b">NimBLEExtAdvertisingCallbacks::onStopped</a></div><div class="ttdeci">virtual void onStopped(NimBLEExtAdvertising *pAdv, int reason, uint8_t inst_id)</div><div class="ttdoc">Handle an advertising stop event.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:368</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_callbacks_html_a92af7bd791095cf91438b7af4c26263f"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising_callbacks.html#a92af7bd791095cf91438b7af4c26263f">NimBLEExtAdvertisingCallbacks::onScanRequest</a></div><div class="ttdeci">virtual void onScanRequest(NimBLEExtAdvertising *pAdv, uint8_t inst_id, NimBLEAddress addr)</div><div class="ttdoc">Handle a scan response request. This is called when a scanning device requests a scan response.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:374</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html">NimBLEExtAdvertising</a></div><div class="ttdoc">Extended advertising class.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.h:92</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_a321fb75a0ffacedfb54da4cc00484b7c"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#a321fb75a0ffacedfb54da4cc00484b7c">NimBLEExtAdvertising::setInstanceData</a></div><div class="ttdeci">bool setInstanceData(uint8_t inst_id, NimBLEExtAdvertisement &adv)</div><div class="ttdoc">Register the extended advertisement data.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:44</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_a3ea2e93f8c3ce4498d30e4dac7b29109"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#a3ea2e93f8c3ce4498d30e4dac7b29109">NimBLEExtAdvertising::stop</a></div><div class="ttdeci">bool stop()</div><div class="ttdoc">Stop all advertisements.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:257</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_a477c57db99ce3b5e987d6838b661808f"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#a477c57db99ce3b5e987d6838b661808f">NimBLEExtAdvertising::~NimBLEExtAdvertising</a></div><div class="ttdeci">~NimBLEExtAdvertising()</div><div class="ttdoc">Destructor: deletes callback instances if requested.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:31</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_a8044a281a37f4d7c96166ce6f0851159"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#a8044a281a37f4d7c96166ce6f0851159">NimBLEExtAdvertising::start</a></div><div class="ttdeci">bool start(uint8_t inst_id, int duration=0, int max_events=0)</div><div class="ttdoc">Start extended advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:154</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_a88ebe0b664cf22449e1a4311fc3b9b01"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#a88ebe0b664cf22449e1a4311fc3b9b01">NimBLEExtAdvertising::isActive</a></div><div class="ttdeci">bool isActive(uint8_t inst_id)</div><div class="ttdoc">Check if currently advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:294</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_a8c4df0be35301c90a39491b9e98d3e24"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#a8c4df0be35301c90a39491b9e98d3e24">NimBLEExtAdvertising::removeAll</a></div><div class="ttdeci">bool removeAll()</div><div class="ttdoc">Stop and remove all advertising instance data.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:220</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_a9395a0087e96329591ed2515cc21456b"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#a9395a0087e96329591ed2515cc21456b">NimBLEExtAdvertising::setScanResponseData</a></div><div class="ttdeci">bool setScanResponseData(uint8_t inst_id, NimBLEExtAdvertisement &data)</div><div class="ttdoc">Set the scan response data for a legacy advertisement.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:128</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_abd7d35653a6831e75700eb5ac9ab5789"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#abd7d35653a6831e75700eb5ac9ab5789">NimBLEExtAdvertising::isAdvertising</a></div><div class="ttdeci">bool isAdvertising()</div><div class="ttdoc">Check if any instances are currently advertising.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:303</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_add623162d46c952d692e26888c9f8826"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#add623162d46c952d692e26888c9f8826">NimBLEExtAdvertising::setCallbacks</a></div><div class="ttdeci">void setCallbacks(NimBLEExtAdvertisingCallbacks *callbacks, bool deleteCallbacks=true)</div><div class="ttdoc">Set a callback to call when the advertisement stops.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:278</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_af7f4225f33f03d17efba1d4de0684eef"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#af7f4225f33f03d17efba1d4de0684eef">NimBLEExtAdvertising::removeInstance</a></div><div class="ttdeci">bool removeInstance(uint8_t inst_id)</div><div class="ttdoc">Stop and remove this instance data from the advertisement set.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.cpp:201</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_ext_advertising_html_afe321b856d785b78242b2ea020a96af3"><div class="ttname"><a href="class_nim_b_l_e_ext_advertising.html#afe321b856d785b78242b2ea020a96af3">NimBLEExtAdvertising::NimBLEExtAdvertising</a></div><div class="ttdeci">NimBLEExtAdvertising()</div><div class="ttdoc">Construct an extended advertising object.</div><div class="ttdef"><b>Definition:</b> NimBLEExtAdvertising.h:97</div></div>
|
||
|
<div class="ttc" id="aclass_nim_b_l_e_server_html"><div class="ttname"><a href="class_nim_b_l_e_server.html">NimBLEServer</a></div><div class="ttdoc">The model of a BLE server.</div><div class="ttdef"><b>Definition:</b> NimBLEServer.h:46</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>NimBLEExtAdvertising.h</b></li>
|
||
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|