esp-nimble-cpp/class_nim_b_l_e_remote_descriptor.html

489 lines
26 KiB
HTML
Raw Normal View History

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
2022-01-15 23:23:57 +01:00
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
2022-01-15 23:23:57 +01:00
<title>esp-nimble-cpp: NimBLERemoteDescriptor 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;">
2022-01-15 23:23:57 +01:00
<div id="projectname">esp-nimble-cpp
&#160;<span id="projectnumber">1.3.2</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
2022-01-15 23:23:57 +01:00
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_nim_b_l_e_remote_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> &#124;
<a href="class_nim_b_l_e_remote_descriptor-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">NimBLERemoteDescriptor Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A model of remote BLE descriptor.
<a href="class_nim_b_l_e_remote_descriptor.html#details">More...</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:ab8a774ebc69c0fb7ea17f926a82dba21"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#ab8a774ebc69c0fb7ea17f926a82dba21">getHandle</a> ()</td></tr>
<tr class="memdesc:ab8a774ebc69c0fb7ea17f926a82dba21"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the handle associated with this remote descriptor. <a href="class_nim_b_l_e_remote_descriptor.html#ab8a774ebc69c0fb7ea17f926a82dba21">More...</a><br /></td></tr>
<tr class="separator:ab8a774ebc69c0fb7ea17f926a82dba21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a529e80c6731f68f3598e015df7618cfe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_nim_b_l_e_remote_characteristic.html">NimBLERemoteCharacteristic</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a529e80c6731f68f3598e015df7618cfe">getRemoteCharacteristic</a> ()</td></tr>
<tr class="memdesc:a529e80c6731f68f3598e015df7618cfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the characteristic that owns this descriptor. <a href="class_nim_b_l_e_remote_descriptor.html#a529e80c6731f68f3598e015df7618cfe">More...</a><br /></td></tr>
<tr class="separator:a529e80c6731f68f3598e015df7618cfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace6b19cd3d9aa8226b4c17371616ad58"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#ace6b19cd3d9aa8226b4c17371616ad58">getUUID</a> ()</td></tr>
<tr class="memdesc:ace6b19cd3d9aa8226b4c17371616ad58"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve the UUID associated this remote descriptor. <a href="class_nim_b_l_e_remote_descriptor.html#ace6b19cd3d9aa8226b4c17371616ad58">More...</a><br /></td></tr>
<tr class="separator:ace6b19cd3d9aa8226b4c17371616ad58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b6952aa46b3541fb0a8247e4e542257"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257">readValue</a> ()</td></tr>
<tr class="memdesc:a3b6952aa46b3541fb0a8247e4e542257"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the value of the remote descriptor. <a href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257">More...</a><br /></td></tr>
<tr class="separator:a3b6952aa46b3541fb0a8247e4e542257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4e3a21818903b69ace41c36a58d3c46"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ac4e3a21818903b69ace41c36a58d3c46"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#ac4e3a21818903b69ace41c36a58d3c46">readValue</a> (bool skipSizeCheck=false)</td></tr>
<tr class="memdesc:ac4e3a21818903b69ace41c36a58d3c46"><td class="mdescLeft">&#160;</td><td class="mdescRight">A template to convert the remote descriptor data to &lt;type&gt;. <a href="class_nim_b_l_e_remote_descriptor.html#ac4e3a21818903b69ace41c36a58d3c46">More...</a><br /></td></tr>
<tr class="separator:ac4e3a21818903b69ace41c36a58d3c46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab07e86707a91e48f68e9de55686e939b"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#ab07e86707a91e48f68e9de55686e939b">readUInt8</a> () __attribute__((deprecated(&quot;Use template <a class="el" href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257">readValue</a>&lt;uint8_t&gt;()&quot;)))</td></tr>
<tr class="memdesc:ab07e86707a91e48f68e9de55686e939b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a byte value. <a href="class_nim_b_l_e_remote_descriptor.html#ab07e86707a91e48f68e9de55686e939b">More...</a><br /></td></tr>
<tr class="separator:ab07e86707a91e48f68e9de55686e939b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14351ea51b7b04f91b71e388881edd53"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a14351ea51b7b04f91b71e388881edd53">readUInt16</a> () __attribute__((deprecated(&quot;Use template <a class="el" href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257">readValue</a>&lt;uint16_t&gt;()&quot;)))</td></tr>
<tr class="memdesc:a14351ea51b7b04f91b71e388881edd53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read an unsigned 16 bit value. <a href="class_nim_b_l_e_remote_descriptor.html#a14351ea51b7b04f91b71e388881edd53">More...</a><br /></td></tr>
<tr class="separator:a14351ea51b7b04f91b71e388881edd53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a219606f84d63bc02f093051d66f05204"><td class="memItemLeft" align="right" valign="top">uint32_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a219606f84d63bc02f093051d66f05204">readUInt32</a> () __attribute__((deprecated(&quot;Use template <a class="el" href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257">readValue</a>&lt;uint32_t&gt;()&quot;)))</td></tr>
<tr class="memdesc:a219606f84d63bc02f093051d66f05204"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read an unsigned 32 bit value. <a href="class_nim_b_l_e_remote_descriptor.html#a219606f84d63bc02f093051d66f05204">More...</a><br /></td></tr>
<tr class="separator:a219606f84d63bc02f093051d66f05204"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a008795a09d1fbe8533c2e9d0e8deb33a"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a008795a09d1fbe8533c2e9d0e8deb33a">toString</a> (void)</td></tr>
<tr class="memdesc:a008795a09d1fbe8533c2e9d0e8deb33a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return a string representation of this Remote Descriptor. <a href="class_nim_b_l_e_remote_descriptor.html#a008795a09d1fbe8533c2e9d0e8deb33a">More...</a><br /></td></tr>
<tr class="separator:a008795a09d1fbe8533c2e9d0e8deb33a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d3fb6424b2c86730e1a292281cd836e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a0d3fb6424b2c86730e1a292281cd836e">writeValue</a> (const uint8_t *data, size_t length, bool response=false)</td></tr>
<tr class="memdesc:a0d3fb6424b2c86730e1a292281cd836e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data to the BLE Remote Descriptor. <a href="class_nim_b_l_e_remote_descriptor.html#a0d3fb6424b2c86730e1a292281cd836e">More...</a><br /></td></tr>
<tr class="separator:a0d3fb6424b2c86730e1a292281cd836e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30bc16403ed53d3b4417c0a01cc4a40f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a30bc16403ed53d3b4417c0a01cc4a40f">writeValue</a> (const std::string &amp;newValue, bool response=false)</td></tr>
<tr class="memdesc:a30bc16403ed53d3b4417c0a01cc4a40f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data represented as a string to the BLE Remote Descriptor. <a href="class_nim_b_l_e_remote_descriptor.html#a30bc16403ed53d3b4417c0a01cc4a40f">More...</a><br /></td></tr>
<tr class="separator:a30bc16403ed53d3b4417c0a01cc4a40f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1abc84a09001537dffd13c810a503b9c"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a1abc84a09001537dffd13c810a503b9c"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_remote_descriptor.html#a1abc84a09001537dffd13c810a503b9c">writeValue</a> (const T &amp;s, bool response=false)</td></tr>
<tr class="memdesc:a1abc84a09001537dffd13c810a503b9c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience template to set the remote descriptor value to &lt;type&gt;val. <a href="class_nim_b_l_e_remote_descriptor.html#a1abc84a09001537dffd13c810a503b9c">More...</a><br /></td></tr>
<tr class="separator:a1abc84a09001537dffd13c810a503b9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A model of remote BLE descriptor. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ab8a774ebc69c0fb7ea17f926a82dba21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8a774ebc69c0fb7ea17f926a82dba21">&#9670;&nbsp;</a></span>getHandle()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint16_t NimBLERemoteDescriptor::getHandle </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve the handle associated with this remote descriptor. </p>
<dl class="section return"><dt>Returns</dt><dd>The handle associated with this remote descriptor. </dd></dl>
</div>
</div>
<a id="a529e80c6731f68f3598e015df7618cfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a529e80c6731f68f3598e015df7618cfe">&#9670;&nbsp;</a></span>getRemoteCharacteristic()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_nim_b_l_e_remote_characteristic.html">NimBLERemoteCharacteristic</a> * NimBLERemoteDescriptor::getRemoteCharacteristic </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Get the characteristic that owns this descriptor. </p>
<dl class="section return"><dt>Returns</dt><dd>The characteristic that owns this descriptor. </dd></dl>
</div>
</div>
<a id="ace6b19cd3d9aa8226b4c17371616ad58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace6b19cd3d9aa8226b4c17371616ad58">&#9670;&nbsp;</a></span>getUUID()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="class_nim_b_l_e_u_u_i_d.html">NimBLEUUID</a> NimBLERemoteDescriptor::getUUID </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieve the UUID associated this remote descriptor. </p>
<dl class="section return"><dt>Returns</dt><dd>The UUID associated this remote descriptor. </dd></dl>
</div>
</div>
<a id="a14351ea51b7b04f91b71e388881edd53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14351ea51b7b04f91b71e388881edd53">&#9670;&nbsp;</a></span>readUInt16()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint16_t NimBLERemoteDescriptor::readUInt16 </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read an unsigned 16 bit value. </p>
<dl class="section return"><dt>Returns</dt><dd>The unsigned 16 bit value. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000009">Deprecated:</a></b></dt><dd>Use <a class="el" href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257" title="Read the value of the remote descriptor.">readValue&lt;uint16_t&gt;()</a>. </dd></dl>
</div>
</div>
<a id="a219606f84d63bc02f093051d66f05204"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a219606f84d63bc02f093051d66f05204">&#9670;&nbsp;</a></span>readUInt32()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t NimBLERemoteDescriptor::readUInt32 </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read an unsigned 32 bit value. </p>
<dl class="section return"><dt>Returns</dt><dd>the unsigned 32 bit value. </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000010">Deprecated:</a></b></dt><dd>Use <a class="el" href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257" title="Read the value of the remote descriptor.">readValue&lt;uint32_t&gt;()</a>. </dd></dl>
</div>
</div>
<a id="ab07e86707a91e48f68e9de55686e939b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab07e86707a91e48f68e9de55686e939b">&#9670;&nbsp;</a></span>readUInt8()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint8_t NimBLERemoteDescriptor::readUInt8 </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read a byte value. </p>
<dl class="section return"><dt>Returns</dt><dd>The value as a byte </dd></dl>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd>Use <a class="el" href="class_nim_b_l_e_remote_descriptor.html#a3b6952aa46b3541fb0a8247e4e542257" title="Read the value of the remote descriptor.">readValue&lt;uint8_t&gt;()</a>. </dd></dl>
</div>
</div>
<a id="a3b6952aa46b3541fb0a8247e4e542257"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b6952aa46b3541fb0a8247e4e542257">&#9670;&nbsp;</a></span>readValue() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string NimBLERemoteDescriptor::readValue </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Read the value of the remote descriptor. </p>
<dl class="section return"><dt>Returns</dt><dd>The value of the remote descriptor. </dd></dl>
</div>
</div>
<a id="ac4e3a21818903b69ace41c36a58d3c46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4e3a21818903b69ace41c36a58d3c46">&#9670;&nbsp;</a></span>readValue() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">T NimBLERemoteDescriptor::readValue </td>
<td>(</td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>skipSizeCheck</em> = <code>false</code></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>A template to convert the remote descriptor data to &lt;type&gt;. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">T</td><td>The type to convert the data to. </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">skipSizeCheck</td><td>If true it will skip checking if the data size is less than <code>sizeof(&lt;type&gt;)</code>. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The data converted to &lt;type&gt; or NULL if skipSizeCheck is false and the data is less than <code>sizeof(&lt;type&gt;)</code>.</dd></dl>
<p><b>Use:</b> <code>readValue&lt;type&gt;(skipSizeCheck);</code> </p>
</div>
</div>
<a id="a008795a09d1fbe8533c2e9d0e8deb33a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a008795a09d1fbe8533c2e9d0e8deb33a">&#9670;&nbsp;</a></span>toString()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string NimBLERemoteDescriptor::toString </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a string representation of this Remote Descriptor. </p>
<dl class="section return"><dt>Returns</dt><dd>A string representation of this Remote Descriptor. </dd></dl>
</div>
</div>
<a id="a30bc16403ed53d3b4417c0a01cc4a40f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30bc16403ed53d3b4417c0a01cc4a40f">&#9670;&nbsp;</a></span>writeValue() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool NimBLERemoteDescriptor::writeValue </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>newValue</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>response</em> = <code>false</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write data represented as a string to the BLE Remote Descriptor. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">newValue</td><td>The data to send to the remote descriptor. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">response</td><td>True if we expect a response. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful </dd></dl>
</div>
</div>
<a id="a1abc84a09001537dffd13c810a503b9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1abc84a09001537dffd13c810a503b9c">&#9670;&nbsp;</a></span>writeValue() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool NimBLERemoteDescriptor::writeValue </td>
<td>(</td>
<td class="paramtype">const T &amp;&#160;</td>
<td class="paramname"><em>s</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>response</em> = <code>false</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</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 remote descriptor value to &lt;type&gt;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 write. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">response</td><td>True == request write response. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a0d3fb6424b2c86730e1a292281cd836e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d3fb6424b2c86730e1a292281cd836e">&#9670;&nbsp;</a></span>writeValue() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool NimBLERemoteDescriptor::writeValue </td>
<td>(</td>
<td class="paramtype">const uint8_t *&#160;</td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t&#160;</td>
<td class="paramname"><em>length</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool&#160;</td>
<td class="paramname"><em>response</em> = <code>false</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Write data to the BLE Remote 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 send to the remote descriptor. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">length</td><td>The length of the data to send. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">response</td><td>True if we expect a write response. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if successful </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_remote_descriptor.html">NimBLERemoteDescriptor</a></li>
2022-01-15 23:23:57 +01:00
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
</ul>
</div>
</body>
</html>