<divclass="line"><aid="l00005"name="l00005"></a><spanclass="lineno"> 5</span><spanclass="comment"> * Licensed under the Apache License, Version 2.0 (the "License");</span></div>
<divclass="line"><aid="l00006"name="l00006"></a><spanclass="lineno"> 6</span><spanclass="comment"> * you may not use this file except in compliance with the License.</span></div>
<divclass="line"><aid="l00007"name="l00007"></a><spanclass="lineno"> 7</span><spanclass="comment"> * You may obtain a copy of the License at</span></div>
<divclass="line"><aid="l00011"name="l00011"></a><spanclass="lineno"> 11</span><spanclass="comment"> * Unless required by applicable law or agreed to in writing, software</span></div>
<divclass="line"><aid="l00012"name="l00012"></a><spanclass="lineno"> 12</span><spanclass="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div>
<divclass="line"><aid="l00013"name="l00013"></a><spanclass="lineno"> 13</span><spanclass="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div>
<divclass="line"><aid="l00014"name="l00014"></a><spanclass="lineno"> 14</span><spanclass="comment"> * See the License for the specific language governing permissions and</span></div>
<divclass="line"><aid="l00015"name="l00015"></a><spanclass="lineno"> 15</span><spanclass="comment"> * limitations under the License.</span></div>
<divclass="line"><aid="l00024"name="l00024"></a><spanclass="lineno"> 24</span><spanclass="preprocessor"># if defined(CONFIG_NIMBLE_CPP_IDF)</span></div>
<divclass="line"><aid="l00025"name="l00025"></a><spanclass="lineno"> 25</span><spanclass="preprocessor"># include "host/ble_gap.h"</span></div>
<divclass="line"><aid="l00027"name="l00027"></a><spanclass="lineno"> 27</span><spanclass="preprocessor"># include "nimble/nimble/host/include/host/ble_gap.h"</span></div>
<divclass="line"><aid="l00053"name="l00053"></a><spanclass="lineno"> 53</span><spanclass="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<divclass="line"><aid="l00083"name="l00083"></a><spanclass="lineno"> 83</span><spanclass="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<divclass="line"><aid="l00126"name="l00126"></a><spanclass="lineno"> 126</span><spanclass="preprocessor"># if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL)</span></div>
<divclass="ttc"id="aclass_nim_b_l_e_address_html"><divclass="ttname"><ahref="class_nim_b_l_e_address.html">NimBLEAddress</a></div><divclass="ttdoc">A BLE device address.</div><divclass="ttdef"><b>Definition</b> NimBLEAddress.h:41</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:52</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_characteristic_html"><divclass="ttname"><ahref="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a></div><divclass="ttdoc">The model of a BLE Characteristic.</div><divclass="ttdef"><b>Definition</b> NimBLECharacteristic.h:40</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_client_html"><divclass="ttname"><ahref="class_nim_b_l_e_client.html">NimBLEClient</a></div><divclass="ttdoc">A model of a BLE client.</div><divclass="ttdef"><b>Definition</b> NimBLEClient.h:49</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:109</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html">NimBLEServerCallbacks</a></div><divclass="ttdoc">Callbacks associated with the operation of a BLE server.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.h:140</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_a11d48696c2121eb301a76301555df2c5"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#a11d48696c2121eb301a76301555df2c5">NimBLEServerCallbacks::onConnect</a></div><divclass="ttdeci">virtual void onConnect(NimBLEServer *pServer, NimBLEConnInfo &connInfo)</div><divclass="ttdoc">Handle a client connection. This is called when a client connects.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:983</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_a45b5fc1c98b287a2ddeab8f2f5b63c4f"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#a45b5fc1c98b287a2ddeab8f2f5b63c4f">NimBLEServerCallbacks::onPassKeyDisplay</a></div><divclass="ttdeci">virtual uint32_t onPassKeyDisplay()</div><divclass="ttdoc">Called when a client requests a passkey for pairing (display).</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:995</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_a4622b24e5553cc7961c04ab25b63d943"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#a4622b24e5553cc7961c04ab25b63d943">NimBLEServerCallbacks::onDisconnect</a></div><divclass="ttdeci">virtual void onDisconnect(NimBLEServer *pServer, NimBLEConnInfo &connInfo, int reason)</div><divclass="ttdoc">Handle a client disconnection. This is called when a client disconnects.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:987</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_a507296393ca8557db2e4afa786c5b436"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#a507296393ca8557db2e4afa786c5b436">NimBLEServerCallbacks::onConfirmPassKey</a></div><divclass="ttdeci">virtual void onConfirmPassKey(NimBLEConnInfo &connInfo, uint32_t pin)</div><divclass="ttdoc">Called when using numeric comparision for pairing.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:1000</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_a5096aa8ec49fe1eddb5d9ab18c112b22"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#a5096aa8ec49fe1eddb5d9ab18c112b22">NimBLEServerCallbacks::onPhyUpdate</a></div><divclass="ttdeci">virtual void onPhyUpdate(NimBLEConnInfo &connInfo, uint8_t txPhy, uint8_t rxPhy)</div><divclass="ttdoc">Called when the PHY update procedure is complete.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:1018</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_a7cbed42919678d9e8d40b351dec82523"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#a7cbed42919678d9e8d40b351dec82523">NimBLEServerCallbacks::onAuthenticationComplete</a></div><divclass="ttdeci">virtual void onAuthenticationComplete(NimBLEConnInfo &connInfo)</div><divclass="ttdoc">Called when the pairing procedure is complete.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:1009</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_aa6e5e8ef90a537540d9c72f8744c0199"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#aa6e5e8ef90a537540d9c72f8744c0199">NimBLEServerCallbacks::onConnParamsUpdate</a></div><divclass="ttdeci">virtual void onConnParamsUpdate(NimBLEConnInfo &connInfo)</div><divclass="ttdoc">Called when connection parameters are updated following a request to update via NimBLEServer::updateC...</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:1013</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_ab702f73e739b4df72e191f47056c01ff"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#ab702f73e739b4df72e191f47056c01ff">NimBLEServerCallbacks::onMTUChange</a></div><divclass="ttdeci">virtual void onMTUChange(uint16_t MTU, NimBLEConnInfo &connInfo)</div><divclass="ttdoc">Called when the connection MTU changes.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:991</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_callbacks_html_afa1c14bfba74491e9f57ccaea22b0664"><divclass="ttname"><ahref="class_nim_b_l_e_server_callbacks.html#afa1c14bfba74491e9f57ccaea22b0664">NimBLEServerCallbacks::onIdentity</a></div><divclass="ttdeci">virtual void onIdentity(NimBLEConnInfo &connInfo)</div><divclass="ttdoc">Called when the peer identity address is resolved.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:1005</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html"><divclass="ttname"><ahref="class_nim_b_l_e_server.html">NimBLEServer</a></div><divclass="ttdoc">The model of a BLE server.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.h:60</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a00c92f62f41ec1c499dfaf042b487d75"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a00c92f62f41ec1c499dfaf042b487d75">NimBLEServer::removeService</a></div><divclass="ttdeci">void removeService(NimBLEService *service, bool deleteSvc=false)</div><divclass="ttdoc">Remove a service from the server.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:704</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a08916d16ea00b4718bd6241bd407829f"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a08916d16ea00b4718bd6241bd407829f">NimBLEServer::getPeerInfoByHandle</a></div><divclass="ttdeci">NimBLEConnInfo getPeerInfoByHandle(uint16_t connHandle) const</div><divclass="ttdoc">Get the connection information of a connected peer by connection handle.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:335</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a0b009a568399014462a5ba7700b0129e"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a0b009a568399014462a5ba7700b0129e">NimBLEServer::getServiceByHandle</a></div><divclass="ttdeci">NimBLEService * getServiceByHandle(uint16_t handle) const</div><divclass="ttdoc">Get a BLE Service by its handle.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:135</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a1513647f2c8a565404410a5dbd71a9ce"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a1513647f2c8a565404410a5dbd71a9ce">NimBLEServer::getPeerInfo</a></div><divclass="ttdeci">NimBLEConnInfo getPeerInfo(uint8_t index) const</div><divclass="ttdoc">Get the connection information of a connected peer by vector index.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:297</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a1cedae8a9346f605b8319cbc8209f0df"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a1cedae8a9346f605b8319cbc8209f0df">NimBLEServer::getPeerDevices</a></div><divclass="ttdeci">std::vector< uint16_t > getPeerDevices() const</div><divclass="ttdoc">Get a vector of the connected client handles.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:281</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a26af61c030e9ad1108b24df4d3b6b633"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a26af61c030e9ad1108b24df4d3b6b633">NimBLEServer::getServiceByUUID</a></div><divclass="ttdeci">NimBLEService * getServiceByUUID(const char *uuid, uint16_t instanceId=0) const</div><divclass="ttdoc">Get a BLE Service by its UUID.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:106</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a31f73892bcf7eb66ee540bf1da9c419c"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a31f73892bcf7eb66ee540bf1da9c419c">NimBLEServer::getClient</a></div><divclass="ttdeci">NimBLEClient * getClient(uint16_t connHandle)</div><divclass="ttdoc">Create a client instance from the connection handle.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:942</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a3bedf02970de34eaf7b90a2f37765fe8"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a3bedf02970de34eaf7b90a2f37765fe8">NimBLEServer::getPeerMTU</a></div><divclass="ttdeci">uint16_t getPeerMTU(uint16_t connHandle) const</div><divclass="ttdoc">Get the MTU value of a client connection.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:883</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a4277e57885576664b9adf11f586e75ba"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a4277e57885576664b9adf11f586e75ba">NimBLEServer::getConnectedCount</a></div><divclass="ttdeci">uint8_t getConnectedCount() const</div><divclass="ttdoc">Return the number of connected clients.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:266</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a485c90ce36275f9e4ec26a7f3d348cd9"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a485c90ce36275f9e4ec26a7f3d348cd9">NimBLEServer::setCallbacks</a></div><divclass="ttdeci">void setCallbacks(NimBLEServerCallbacks *pCallbacks, bool deleteCallbacks=true)</div><divclass="ttdoc">Set the server callbacks.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:676</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a56add4759f7df045f51b70a026897975"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a56add4759f7df045f51b70a026897975">NimBLEServer::updateConnParams</a></div><divclass="ttdeci">void updateConnParams(uint16_t connHandle, uint16_t minInterval, uint16_t maxInterval, uint16_t latency, uint16_t timeout) const</div><divclass="ttdoc">Request an Update the connection parameters:</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:896</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a6eda4c9e0ac1dd031c678d4bf7da1d56"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a6eda4c9e0ac1dd031c678d4bf7da1d56">NimBLEServer::addService</a></div><divclass="ttdeci">void addService(NimBLEService *service)</div><divclass="ttdoc">Adds a service which was either already created but removed from availability, or created and later a...</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:741</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a709eb11532ec43a35f8653845b3158fc"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a709eb11532ec43a35f8653845b3158fc">NimBLEServer::getPhy</a></div><divclass="ttdeci">bool getPhy(uint16_t connHandle, uint8_t *txPhy, uint8_t *rxPhy)</div><divclass="ttdoc">Get the PHY used for a peer connection.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:847</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_a70aafa98cc487c43e11ab30990d5ecb5"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#a70aafa98cc487c43e11ab30990d5ecb5">NimBLEServer::getAdvertising</a></div><divclass="ttdeci">NimBLEExtAdvertising * getAdvertising() const</div><divclass="ttdoc">Retrieve the advertising object that can be used to advertise the existence of the server.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:150</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_aa7dd69e19e6cb8c22579c68e9731cdea"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#aa7dd69e19e6cb8c22579c68e9731cdea">NimBLEServer::deleteClient</a></div><divclass="ttdeci">void deleteClient()</div><divclass="ttdoc">Delete the NimBLEClient instance that was created with getClient()</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:974</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_aaeb58b4de85754d1aac6964e9248aa35"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#aaeb58b4de85754d1aac6964e9248aa35">NimBLEServer::createService</a></div><divclass="ttdeci">NimBLEService * createService(const char *uuid)</div><divclass="ttdoc">Create a BLE Service.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:83</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_ab8cab448de62d05448ccb27d1bbb5c33"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#ab8cab448de62d05448ccb27d1bbb5c33">NimBLEServer::startAdvertising</a></div><divclass="ttdeci">bool startAdvertising(uint8_t instanceId, int duration=0, int maxEvents=0) const</div><divclass="ttdoc">Start advertising.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:799</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_abfd159ff5f10848bd611733835ddf215"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#abfd159ff5f10848bd611733835ddf215">NimBLEServer::updatePhy</a></div><divclass="ttdeci">bool updatePhy(uint16_t connHandle, uint8_t txPhysMask, uint8_t rxPhysMask, uint16_t phyOptions)</div><divclass="ttdoc">Request an update to the PHY used for a peer connection.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:831</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_ac79e828bcc3c45ae817bf51be914bfc0"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#ac79e828bcc3c45ae817bf51be914bfc0">NimBLEServer::disconnect</a></div><divclass="ttdeci">bool disconnect(uint16_t connHandle, uint8_t reason=BLE_ERR_REM_USER_CONN_TERM) const</div><divclass="ttdoc">Disconnect the specified client with optional reason.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:232</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_ae94ad52f3c97f62553af9765acdb7bcb"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#ae94ad52f3c97f62553af9765acdb7bcb">NimBLEServer::start</a></div><divclass="ttdeci">void start()</div><divclass="ttdoc">Start the GATT server.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:180</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_aecf5b57888c55249a9c207d318a0495b"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#aecf5b57888c55249a9c207d318a0495b">NimBLEServer::advertiseOnDisconnect</a></div><divclass="ttdeci">void advertiseOnDisconnect(bool enable)</div><divclass="ttdoc">Set the server to automatically start advertising when a client disconnects.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:257</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_server_html_afbffb933eed8142bd24222e3cacc138a"><divclass="ttname"><ahref="class_nim_b_l_e_server.html#afbffb933eed8142bd24222e3cacc138a">NimBLEServer::setDataLen</a></div><divclass="ttdeci">void setDataLen(uint16_t connHandle, uint16_t tx_octets) const</div><divclass="ttdoc">Request an update of the data packet length.</div><divclass="ttdef"><b>Definition</b> NimBLEServer.cpp:920</div></div>
<divclass="ttc"id="aclass_nim_b_l_e_service_html"><divclass="ttname"><ahref="class_nim_b_l_e_service.html">NimBLEService</a></div><divclass="ttdoc">The model of a BLE service.</div><divclass="ttdef"><b>Definition</b> NimBLEService.h:34</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:41</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.8 </li>