<divclass="line"><aname="l00049"></a><spanclass="lineno"> 49</span> <spanclass="comment">// Only a subset of the possible BLE architected advertisement fields are currently exposed. Others will</span></div>
<divclass="line"><aname="l00050"></a><spanclass="lineno"> 50</span> <spanclass="comment">// be exposed on demand/request or as time permits.</span></div>
<divclass="line"><aname="l00066"></a><spanclass="lineno"> 66</span> <spanclass="keywordtype">void</span><aclass="code"href="class_nim_b_l_e_advertisement_data.html#aec5f567059c4b4fd0f6b5fc74a0ce870">addData</a>(<spanclass="keyword">const</span> std::string &data); <spanclass="comment">// Add data to the payload.</span></div>
<divclass="line"><aname="l00070"></a><spanclass="lineno"> 70</span>  std::string <aclass="code"href="class_nim_b_l_e_advertisement_data.html#acbd638708c8b8b4663c09107bc38feb1">getPayload</a>(); <spanclass="comment">// Retrieve the current advert payload.</span></div>
<divclass="line"><aname="l00076"></a><spanclass="lineno"> 76</span>  std::string m_payload; <spanclass="comment">// The payload of the advertisement.</span></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html">NimBLEAdvertisementData</a></div><divclass="ttdoc">Advertisement data set by the programmer to be published by the BLE server.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.h:48</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a0f209913ef9f3dfb5be8db39567b4f32"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a0f209913ef9f3dfb5be8db39567b4f32">NimBLEAdvertisementData::setAppearance</a></div><divclass="ttdeci">void setAppearance(uint16_t appearance)</div><divclass="ttdoc">Set the appearance.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:776</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a0ff5a72bccd349e551270ceadf528306"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a0ff5a72bccd349e551270ceadf528306">NimBLEAdvertisementData::setPartialServices32</a></div><divclass="ttdeci">void setPartialServices32(const std::vector< NimBLEUUID >&v_uuid)</div><divclass="ttdoc">Set the partial list of services to advertise.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:885</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a480ffc91f212e877ae31ab47190006c3"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a480ffc91f212e877ae31ab47190006c3">NimBLEAdvertisementData::addTxPower</a></div><divclass="ttdeci">void addTxPower()</div><divclass="ttdoc">Adds Tx power level to the advertisement data.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:995</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a50063c7ffa24f0f0407366a450e23ae4"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a50063c7ffa24f0f0407366a450e23ae4">NimBLEAdvertisementData::setPartialServices16</a></div><divclass="ttdeci">void setPartialServices16(const std::vector< NimBLEUUID >&v_uuid)</div><divclass="ttdoc">Set the partial list of services to advertise.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:876</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a50a2584346208ef28274eeecc5befffb"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a50a2584346208ef28274eeecc5befffb">NimBLEAdvertisementData::setCompleteServices16</a></div><divclass="ttdeci">void setCompleteServices16(const std::vector< NimBLEUUID >&v_uuid)</div><divclass="ttdoc">Set the complete list of 16 bit services to advertise.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:849</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a67fd95e586559b73964d5739051f3822"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a67fd95e586559b73964d5739051f3822">NimBLEAdvertisementData::setCompleteServices</a></div><divclass="ttdeci">void setCompleteServices(const NimBLEUUID &uuid)</div><divclass="ttdoc">Set a single service to advertise as a complete list of services.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:840</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a712aa09a4d7f2b3cae9b2f1f1be6372f"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a712aa09a4d7f2b3cae9b2f1f1be6372f">NimBLEAdvertisementData::setCompleteServices32</a></div><divclass="ttdeci">void setCompleteServices32(const std::vector< NimBLEUUID >&v_uuid)</div><divclass="ttdoc">Set the complete list of 32 bit services to advertise.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:858</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a73766a872477512bd750c773d96ca4e2"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a73766a872477512bd750c773d96ca4e2">NimBLEAdvertisementData::setFlags</a></div><divclass="ttdeci">void setFlags(uint8_t)</div><divclass="ttdoc">Set the advertisement flags.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:791</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_a885b4ed75dd71c4c19b86048c16350bf"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#a885b4ed75dd71c4c19b86048c16350bf">NimBLEAdvertisementData::setName</a></div><divclass="ttdeci">void setName(const std::string &name)</div><divclass="ttdoc">Set the complete name of this device.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:828</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_aa003bc4cf9bff2b2bcac9b742ec97a36"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#aa003bc4cf9bff2b2bcac9b742ec97a36">NimBLEAdvertisementData::setURI</a></div><divclass="ttdeci">void setURI(const std::string &uri)</div><divclass="ttdoc">Set the URI to advertise.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:816</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_aa4df88b578782cda2bd77368b50f2d27"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#aa4df88b578782cda2bd77368b50f2d27">NimBLEAdvertisementData::setManufacturerData</a></div><divclass="ttdeci">void setManufacturerData(const std::string &data)</div><divclass="ttdoc">Set manufacturer specific data.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:804</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_acbd638708c8b8b4663c09107bc38feb1"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#acbd638708c8b8b4663c09107bc38feb1">NimBLEAdvertisementData::getPayload</a></div><divclass="ttdeci">std::string getPayload()</div><divclass="ttdoc">Retrieve the payload that is to be advertised.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:1025</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_ae5b514ad9be6552727f1c7a744a29ae5"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#ae5b514ad9be6552727f1c7a744a29ae5">NimBLEAdvertisementData::setShortName</a></div><divclass="ttdeci">void setShortName(const std::string &name)</div><divclass="ttdoc">Set the short name.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:984</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_aec5f567059c4b4fd0f6b5fc74a0ce870"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#aec5f567059c4b4fd0f6b5fc74a0ce870">NimBLEAdvertisementData::addData</a></div><divclass="ttdeci">void addData(const std::string &data)</div><divclass="ttdoc">Add data to the payload to be advertised.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:750</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_aee4fdb5af06fcda9cab9fad3f5bf80d5"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#aee4fdb5af06fcda9cab9fad3f5bf80d5">NimBLEAdvertisementData::setServiceData</a></div><divclass="ttdeci">void setServiceData(const NimBLEUUID &uuid, const std::string &data)</div><divclass="ttdoc">Set the service data (UUID + data)</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:947</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertisement_data_html_af52546d7c3b733a831f6232a845bef85"><divclass="ttname"><ahref="class_nim_b_l_e_advertisement_data.html#af52546d7c3b733a831f6232a845bef85">NimBLEAdvertisementData::setPartialServices</a></div><divclass="ttdeci">void setPartialServices(const NimBLEUUID &uuid)</div><divclass="ttdoc">Set a single service to advertise as a partial list of services.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:867</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html">NimBLEAdvertising</a></div><divclass="ttdoc">Perform and manage BLE advertising.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.h:85</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a04a51a0c639a70295a9b671f73b34358"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a04a51a0c639a70295a9b671f73b34358">NimBLEAdvertising::setScanResponseData</a></div><divclass="ttdeci">void setScanResponseData(NimBLEAdvertisementData &advertisementData)</div><divclass="ttdoc">Set the advertisement data that is to be published in a scan response.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:370</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a16bd135cab3f06bc0ba81c2aec19cbbc"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a16bd135cab3f06bc0ba81c2aec19cbbc">NimBLEAdvertising::setMinInterval</a></div><divclass="ttdeci">void setMinInterval(uint16_t mininterval)</div><divclass="ttdoc">Set the minimum advertising interval.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:225</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a1eff592870a47b0f62b0f0894efadbd4"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a1eff592870a47b0f62b0f0894efadbd4">NimBLEAdvertising::setManufacturerData</a></div><divclass="ttdeci">void setManufacturerData(const std::string &data)</div><divclass="ttdoc">Set the advertised manufacturer data.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:149</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a3382cdf80f5ae46a52e3b9159f8e1b66"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a3382cdf80f5ae46a52e3b9159f8e1b66">NimBLEAdvertising::setMaxPreferred</a></div><divclass="ttdeci">void setMaxPreferred(uint16_t)</div><divclass="ttdoc">Set the advertised max connection interval preferred by this device.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:277</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a3bc158da1f732361df69cf16ca1cfd42"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a3bc158da1f732361df69cf16ca1cfd42">NimBLEAdvertising::setMinPreferred</a></div><divclass="ttdeci">void setMinPreferred(uint16_t)</div><divclass="ttdoc">Set the advertised min connection interval preferred by this device.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:245</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a4de7bf016a086a2d3f6f14ae134678f2"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a4de7bf016a086a2d3f6f14ae134678f2">NimBLEAdvertising::advCompleteCB</a></div><divclass="ttdeci">void advCompleteCB()</div><divclass="ttdoc">Handles the callback when advertising stops.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:683</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a4f334752ea04223185292fe9ab524b69"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a4f334752ea04223185292fe9ab524b69">NimBLEAdvertising::addServiceUUID</a></div><divclass="ttdeci">void addServiceUUID(const NimBLEUUID &serviceUUID)</div><divclass="ttdoc">Add a service uuid to exposed list of services.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:80</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a545b505ea76396c33133d41a78fad5b8"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a545b505ea76396c33133d41a78fad5b8">NimBLEAdvertising::reset</a></div><divclass="ttdeci">void reset()</div><divclass="ttdoc">Stops the current advertising and resets the advertising data to the default values.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:44</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a6495d7c9ad80a8c2a5edf974705f8103"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a6495d7c9ad80a8c2a5edf974705f8103">NimBLEAdvertising::setURI</a></div><divclass="ttdeci">void setURI(const std::string &uri)</div><divclass="ttdoc">Set the advertised URI.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:161</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a68d54f11b47b9993322efec1d07c3519"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a68d54f11b47b9993322efec1d07c3519">NimBLEAdvertising::setAdvertisementType</a></div><divclass="ttdeci">void setAdvertisementType(uint8_t adv_type)</div><divclass="ttdoc">Set the type of advertisment to use.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:216</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a6fb4d9ad3949928ac83d3e74857ab91f"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a6fb4d9ad3949928ac83d3e74857ab91f">NimBLEAdvertising::setScanResponse</a></div><divclass="ttdeci">void setScanResponse(bool)</div><divclass="ttdoc">Set if scan response is available.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:305</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a725437c00152ff57ef1e21bdf7be980d"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a725437c00152ff57ef1e21bdf7be980d">NimBLEAdvertising::removeServiceUUID</a></div><divclass="ttdeci">void removeServiceUUID(const NimBLEUUID &serviceUUID)</div><divclass="ttdoc">Add a service uuid to exposed list of services.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:100</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_a994e43e9e4ace6ce64c57e57d0575781"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#a994e43e9e4ace6ce64c57e57d0575781">NimBLEAdvertising::setServiceData</a></div><divclass="ttdeci">void setServiceData(const NimBLEUUID &uuid, const std::string &data)</div><divclass="ttdoc">Set the service data advertised for the UUID.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:175</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_aa0d30dfb57670cc8180e17dffddad416"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#aa0d30dfb57670cc8180e17dffddad416">NimBLEAdvertising::setAppearance</a></div><divclass="ttdeci">void setAppearance(uint16_t appearance)</div><divclass="ttdoc">Set the device appearance in the advertising data. The codes for distinct appearances can be found he...</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:117</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_aa3da80c7d17a7824484ee254076e4790"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#aa3da80c7d17a7824484ee254076e4790">NimBLEAdvertising::setScanFilter</a></div><divclass="ttdeci">void setScanFilter(bool scanRequestWhitelistOnly, bool connectWhitelistOnly)</div><divclass="ttdoc">Set the filtering for the scan filter.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:316</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_aab512576d8873fbbb631bac8ada19530"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#aab512576d8873fbbb631bac8ada19530">NimBLEAdvertising::setMaxInterval</a></div><divclass="ttdeci">void setMaxInterval(uint16_t maxinterval)</div><divclass="ttdoc">Set the maximum advertising interval.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:234</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_abe6258a917243a4567c3d6eece2ddcdd"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#abe6258a917243a4567c3d6eece2ddcdd">NimBLEAdvertising::NimBLEAdvertising</a></div><divclass="ttdeci">NimBLEAdvertising()</div><divclass="ttdoc">Construct a default advertising object.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:36</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_ac257ab68520a244cb6494d793f9b6c2a"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#ac257ab68520a244cb6494d793f9b6c2a">NimBLEAdvertising::isAdvertising</a></div><divclass="ttdeci">bool isAdvertising()</div><divclass="ttdoc">Check if currently advertising.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:694</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_ac4ff0af45d1f7ed5bc208612852bc43a"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#ac4ff0af45d1f7ed5bc208612852bc43a">NimBLEAdvertising::addTxPower</a></div><divclass="ttdeci">void addTxPower()</div><divclass="ttdoc">Add the transmission power level to the advertisement packet.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:127</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_add2ecd09877d7e4548b11ec7cb8c7a47"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#add2ecd09877d7e4548b11ec7cb8c7a47">NimBLEAdvertising::setName</a></div><divclass="ttdeci">void setName(const std::string &name)</div><divclass="ttdoc">Set the advertised name of the device.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:137</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_advertising_html_af7083f58717b7e76d90d367f00a0ef08"><divclass="ttname"><ahref="class_nim_b_l_e_advertising.html#af7083f58717b7e76d90d367f00a0ef08">NimBLEAdvertising::setAdvertisementData</a></div><divclass="ttdeci">void setAdvertisementData(NimBLEAdvertisementData &advertisementData)</div><divclass="ttdoc">Set the advertisement data that is to be published in a regular advertisement.</div><divclass="ttdef"><b>Definition:</b> NimBLEAdvertising.cpp:350</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_device_html"><divclass="ttname"><ahref="class_nim_b_l_e_device.html">NimBLEDevice</a></div><divclass="ttdoc">A model of a BLE Device from which all the BLE roles are created.</div><divclass="ttdef"><b>Definition:</b> NimBLEDevice.h:92</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_u_u_i_d_html"><divclass="ttname"><ahref="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a></div><divclass="ttdoc">A model of a BLE UUID.</div><divclass="ttdef"><b>Definition:</b> NimBLEUUID.h:37</div></div>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.1 </li>