mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-23 13:40:55 +01:00
407 lines
22 KiB
HTML
407 lines
22 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.0"/>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
|
<title>esp-nimble-cpp / NimBLE-Arduino: NimBLEDescriptor Class Reference</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 / NimBLE-Arduino
|
||
|
 <span id="projectnumber">1.3.1</span>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.9.0 -->
|
||
|
<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('class_nim_b_l_e_descriptor.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="summary">
|
||
|
<a href="#pub-methods">Public Member Functions</a> |
|
||
|
<a href="class_nim_b_l_e_descriptor-members.html">List of all members</a> </div>
|
||
|
<div class="headertitle">
|
||
|
<div class="title">NimBLEDescriptor Class Reference</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
|
||
|
<p>A model of a BLE descriptor.
|
||
|
<a href="class_nim_b_l_e_descriptor.html#details">More...</a></p>
|
||
|
|
||
|
<p>Inherited by <a class="el" href="class_nim_b_l_e2904.html">NimBLE2904</a>.</p>
|
||
|
<table class="memberdecls">
|
||
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
||
|
Public Member Functions</h2></td></tr>
|
||
|
<tr class="memitem:a3cf995352eb1b1c212a7911a05c33b25"><td class="memItemLeft" align="right" valign="top"><a id="a3cf995352eb1b1c212a7911a05c33b25"></a>
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a3cf995352eb1b1c212a7911a05c33b25">NimBLEDescriptor</a> (const char *uuid, uint16_t properties, uint16_t max_len, <a class="el" href="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a> *pCharacteristic=nullptr)</td></tr>
|
||
|
<tr class="memdesc:a3cf995352eb1b1c212a7911a05c33b25"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="class_nim_b_l_e_descriptor.html" title="A model of a BLE descriptor.">NimBLEDescriptor</a> constructor. <br /></td></tr>
|
||
|
<tr class="separator:a3cf995352eb1b1c212a7911a05c33b25"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a7ecb634b7d6390677cad232bd6be6638"><td class="memItemLeft" align="right" valign="top"><a id="a7ecb634b7d6390677cad232bd6be6638"></a>
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a7ecb634b7d6390677cad232bd6be6638">NimBLEDescriptor</a> (<a class="el" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> uuid, uint16_t properties, uint16_t max_len, <a class="el" href="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a> *pCharacteristic=nullptr)</td></tr>
|
||
|
<tr class="memdesc:a7ecb634b7d6390677cad232bd6be6638"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="class_nim_b_l_e_descriptor.html" title="A model of a BLE descriptor.">NimBLEDescriptor</a> constructor. <br /></td></tr>
|
||
|
<tr class="separator:a7ecb634b7d6390677cad232bd6be6638"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ad110851335bc7b225f5bea9ac11bedcc"><td class="memItemLeft" align="right" valign="top"><a id="ad110851335bc7b225f5bea9ac11bedcc"></a>
|
||
|
 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#ad110851335bc7b225f5bea9ac11bedcc">~NimBLEDescriptor</a> ()</td></tr>
|
||
|
<tr class="memdesc:ad110851335bc7b225f5bea9ac11bedcc"><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="class_nim_b_l_e_descriptor.html" title="A model of a BLE descriptor.">NimBLEDescriptor</a> destructor. <br /></td></tr>
|
||
|
<tr class="separator:ad110851335bc7b225f5bea9ac11bedcc"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a486af6799753dfa60b3faddfac2adbcd"><td class="memItemLeft" align="right" valign="top">uint16_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a486af6799753dfa60b3faddfac2adbcd">getHandle</a> ()</td></tr>
|
||
|
<tr class="memdesc:a486af6799753dfa60b3faddfac2adbcd"><td class="mdescLeft"> </td><td class="mdescRight">Get the BLE handle for this descriptor. <a href="class_nim_b_l_e_descriptor.html#a486af6799753dfa60b3faddfac2adbcd">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a486af6799753dfa60b3faddfac2adbcd"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:abc5398a570edc197fbadad3f5b45e186"><td class="memItemLeft" align="right" valign="top"><a id="abc5398a570edc197fbadad3f5b45e186"></a>
|
||
|
<a class="el" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#abc5398a570edc197fbadad3f5b45e186">getUUID</a> ()</td></tr>
|
||
|
<tr class="memdesc:abc5398a570edc197fbadad3f5b45e186"><td class="mdescLeft"> </td><td class="mdescRight">Get the UUID of the descriptor. <br /></td></tr>
|
||
|
<tr class="separator:abc5398a570edc197fbadad3f5b45e186"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ac15dc6c9c24d280c4b0eb766080497e5"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#ac15dc6c9c24d280c4b0eb766080497e5">toString</a> ()</td></tr>
|
||
|
<tr class="memdesc:ac15dc6c9c24d280c4b0eb766080497e5"><td class="mdescLeft"> </td><td class="mdescRight">Return a string representation of the descriptor. <a href="class_nim_b_l_e_descriptor.html#ac15dc6c9c24d280c4b0eb766080497e5">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ac15dc6c9c24d280c4b0eb766080497e5"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:aa9cb8727f9e17cf8050cf619e5fe3096"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#aa9cb8727f9e17cf8050cf619e5fe3096">setCallbacks</a> (<a class="el" href="class_nim_b_l_e_descriptor_callbacks.html">NimBLEDescriptorCallbacks</a> *pCallbacks)</td></tr>
|
||
|
<tr class="memdesc:aa9cb8727f9e17cf8050cf619e5fe3096"><td class="mdescLeft"> </td><td class="mdescRight">Set the callback handlers for this descriptor. <a href="class_nim_b_l_e_descriptor.html#aa9cb8727f9e17cf8050cf619e5fe3096">More...</a><br /></td></tr>
|
||
|
<tr class="separator:aa9cb8727f9e17cf8050cf619e5fe3096"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a378346f59afb706d4c1d961227b98c5d"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a378346f59afb706d4c1d961227b98c5d">getLength</a> ()</td></tr>
|
||
|
<tr class="memdesc:a378346f59afb706d4c1d961227b98c5d"><td class="mdescLeft"> </td><td class="mdescRight">Get the length of the value of this descriptor. <a href="class_nim_b_l_e_descriptor.html#a378346f59afb706d4c1d961227b98c5d">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a378346f59afb706d4c1d961227b98c5d"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ac54fd0830ceb64b91037b623dbc427b5"><td class="memItemLeft" align="right" valign="top">uint8_t * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#ac54fd0830ceb64b91037b623dbc427b5">getValue</a> ()</td></tr>
|
||
|
<tr class="memdesc:ac54fd0830ceb64b91037b623dbc427b5"><td class="mdescLeft"> </td><td class="mdescRight">Get the value of this descriptor. <a href="class_nim_b_l_e_descriptor.html#ac54fd0830ceb64b91037b623dbc427b5">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ac54fd0830ceb64b91037b623dbc427b5"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a7153e051e5808469c23e2207fa6711db"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a7153e051e5808469c23e2207fa6711db">getStringValue</a> ()</td></tr>
|
||
|
<tr class="memdesc:a7153e051e5808469c23e2207fa6711db"><td class="mdescLeft"> </td><td class="mdescRight">Get the value of this descriptor as a string. <a href="class_nim_b_l_e_descriptor.html#a7153e051e5808469c23e2207fa6711db">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a7153e051e5808469c23e2207fa6711db"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a9447cee9092dc516266f7764131ba923"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a9447cee9092dc516266f7764131ba923">setValue</a> (const uint8_t *data, size_t size)</td></tr>
|
||
|
<tr class="memdesc:a9447cee9092dc516266f7764131ba923"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the descriptor. <a href="class_nim_b_l_e_descriptor.html#a9447cee9092dc516266f7764131ba923">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a9447cee9092dc516266f7764131ba923"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:ad14bda7d046b5f814ed599c8157c7e51"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#ad14bda7d046b5f814ed599c8157c7e51">setValue</a> (const std::string &value)</td></tr>
|
||
|
<tr class="memdesc:ad14bda7d046b5f814ed599c8157c7e51"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the descriptor. <a href="class_nim_b_l_e_descriptor.html#ad14bda7d046b5f814ed599c8157c7e51">More...</a><br /></td></tr>
|
||
|
<tr class="separator:ad14bda7d046b5f814ed599c8157c7e51"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a412b3735186d94e9ddcf37a06c2055e1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a412b3735186d94e9ddcf37a06c2055e1">getCharacteristic</a> ()</td></tr>
|
||
|
<tr class="memdesc:a412b3735186d94e9ddcf37a06c2055e1"><td class="mdescLeft"> </td><td class="mdescRight">Get the characteristic this descriptor belongs to. <a href="class_nim_b_l_e_descriptor.html#a412b3735186d94e9ddcf37a06c2055e1">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a412b3735186d94e9ddcf37a06c2055e1"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
<tr class="memitem:a9136cc9e4b41110b3dd99d1c9553a477"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
||
|
<tr class="memitem:a9136cc9e4b41110b3dd99d1c9553a477"><td class="memTemplItemLeft" align="right" valign="top">void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a9136cc9e4b41110b3dd99d1c9553a477">setValue</a> (const T &s)</td></tr>
|
||
|
<tr class="memdesc:a9136cc9e4b41110b3dd99d1c9553a477"><td class="mdescLeft"> </td><td class="mdescRight">Convenience template to set the descriptor value to <type>val. <a href="class_nim_b_l_e_descriptor.html#a9136cc9e4b41110b3dd99d1c9553a477">More...</a><br /></td></tr>
|
||
|
<tr class="separator:a9136cc9e4b41110b3dd99d1c9553a477"><td class="memSeparator" colspan="2"> </td></tr>
|
||
|
</table>
|
||
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
||
|
<div class="textblock"><p>A model of a BLE descriptor. </p>
|
||
|
</div><h2 class="groupheader">Member Function Documentation</h2>
|
||
|
<a id="a412b3735186d94e9ddcf37a06c2055e1"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a412b3735186d94e9ddcf37a06c2055e1">◆ </a></span>getCharacteristic()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname"><a class="el" href="class_nim_b_l_e_characteristic.html">NimBLECharacteristic</a> * NimBLEDescriptor::getCharacteristic </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Get the characteristic this descriptor belongs to. </p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>A pointer to the characteristic this descriptor belongs to. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="a486af6799753dfa60b3faddfac2adbcd"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a486af6799753dfa60b3faddfac2adbcd">◆ </a></span>getHandle()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">uint16_t NimBLEDescriptor::getHandle </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Get the BLE handle for this descriptor. </p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>The handle for this descriptor. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="a378346f59afb706d4c1d961227b98c5d"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a378346f59afb706d4c1d961227b98c5d">◆ </a></span>getLength()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">size_t NimBLEDescriptor::getLength </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Get the length of the value of this descriptor. </p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>The length (in bytes) of the value of this descriptor. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="a7153e051e5808469c23e2207fa6711db"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a7153e051e5808469c23e2207fa6711db">◆ </a></span>getStringValue()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">std::string NimBLEDescriptor::getStringValue </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Get the value of this descriptor as a string. </p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>A std::string instance containing a copy of the descriptor's value. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="ac54fd0830ceb64b91037b623dbc427b5"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#ac54fd0830ceb64b91037b623dbc427b5">◆ </a></span>getValue()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">uint8_t * NimBLEDescriptor::getValue </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Get the value of this descriptor. </p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>A pointer to the value of this descriptor. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="aa9cb8727f9e17cf8050cf619e5fe3096"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#aa9cb8727f9e17cf8050cf619e5fe3096">◆ </a></span>setCallbacks()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void NimBLEDescriptor::setCallbacks </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype"><a class="el" href="class_nim_b_l_e_descriptor_callbacks.html">NimBLEDescriptorCallbacks</a> * </td>
|
||
|
<td class="paramname"><em>pCallbacks</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Set the callback handlers for this descriptor. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramdir">[in]</td><td class="paramname">pCallbacks</td><td>An instance of a callback structure used to define any callbacks for the descriptor. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="ad14bda7d046b5f814ed599c8157c7e51"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#ad14bda7d046b5f814ed599c8157c7e51">◆ </a></span>setValue() <span class="overload">[1/3]</span></h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void NimBLEDescriptor::setValue </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const std::string & </td>
|
||
|
<td class="paramname"><em>value</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Set the value of the descriptor. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The value of the descriptor in string form. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="a9136cc9e4b41110b3dd99d1c9553a477"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a9136cc9e4b41110b3dd99d1c9553a477">◆ </a></span>setValue() <span class="overload">[2/3]</span></h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<div class="memtemplate">
|
||
|
template<typename T > </div>
|
||
|
<table class="mlabels">
|
||
|
<tr>
|
||
|
<td class="mlabels-left">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void NimBLEDescriptor::setValue </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const T & </td>
|
||
|
<td class="paramname"><em>s</em></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</td>
|
||
|
<td class="mlabels-right">
|
||
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Convenience template to set the descriptor value to <type>val. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramdir">[in]</td><td class="paramname">s</td><td>The value to set. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="a9447cee9092dc516266f7764131ba923"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#a9447cee9092dc516266f7764131ba923">◆ </a></span>setValue() <span class="overload">[3/3]</span></h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">void NimBLEDescriptor::setValue </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramtype">const uint8_t * </td>
|
||
|
<td class="paramname"><em>data</em>, </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="paramkey"></td>
|
||
|
<td></td>
|
||
|
<td class="paramtype">size_t </td>
|
||
|
<td class="paramname"><em>length</em> </td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td>)</td>
|
||
|
<td></td><td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Set the value of the descriptor. </p>
|
||
|
<dl class="params"><dt>Parameters</dt><dd>
|
||
|
<table class="params">
|
||
|
<tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>The data to set for the descriptor. </td></tr>
|
||
|
<tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The length of the data in bytes. </td></tr>
|
||
|
</table>
|
||
|
</dd>
|
||
|
</dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<a id="ac15dc6c9c24d280c4b0eb766080497e5"></a>
|
||
|
<h2 class="memtitle"><span class="permalink"><a href="#ac15dc6c9c24d280c4b0eb766080497e5">◆ </a></span>toString()</h2>
|
||
|
|
||
|
<div class="memitem">
|
||
|
<div class="memproto">
|
||
|
<table class="memname">
|
||
|
<tr>
|
||
|
<td class="memname">std::string NimBLEDescriptor::toString </td>
|
||
|
<td>(</td>
|
||
|
<td class="paramname"></td><td>)</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</div><div class="memdoc">
|
||
|
|
||
|
<p>Return a string representation of the descriptor. </p>
|
||
|
<dl class="section return"><dt>Returns</dt><dd>A string representation of the descriptor. </dd></dl>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</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="class_nim_b_l_e_descriptor.html">NimBLEDescriptor</a></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.0 </li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|