mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-23 13:40:55 +01:00
212 lines
22 KiB
HTML
212 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.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>esp-nimble-cpp: NimBLE2904 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
|
|
 <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('class_nim_b_l_e2904.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_e2904-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">NimBLE2904 Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>Descriptor for Characteristic Presentation Format.
|
|
<a href="class_nim_b_l_e2904.html#details">More...</a></p>
|
|
|
|
<p>Inherits <a class="el" href="class_nim_b_l_e_descriptor.html">NimBLEDescriptor</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:a498c863cb3fbf92eecc23f9f8856037c"><td class="memItemLeft" align="right" valign="top"><a id="a498c863cb3fbf92eecc23f9f8856037c"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e2904.html#a498c863cb3fbf92eecc23f9f8856037c">setDescription</a> (uint16_t)</td></tr>
|
|
<tr class="memdesc:a498c863cb3fbf92eecc23f9f8856037c"><td class="mdescLeft"> </td><td class="mdescRight">Set the description. <br /></td></tr>
|
|
<tr class="separator:a498c863cb3fbf92eecc23f9f8856037c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab1c53f99246f67dca1d63b812bef631d"><td class="memItemLeft" align="right" valign="top"><a id="ab1c53f99246f67dca1d63b812bef631d"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e2904.html#ab1c53f99246f67dca1d63b812bef631d">setExponent</a> (int8_t exponent)</td></tr>
|
|
<tr class="memdesc:ab1c53f99246f67dca1d63b812bef631d"><td class="mdescLeft"> </td><td class="mdescRight">Set the exponent. <br /></td></tr>
|
|
<tr class="separator:ab1c53f99246f67dca1d63b812bef631d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ab7f21651b4493fd3daaa0f1545032ff1"><td class="memItemLeft" align="right" valign="top"><a id="ab7f21651b4493fd3daaa0f1545032ff1"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e2904.html#ab7f21651b4493fd3daaa0f1545032ff1">setFormat</a> (uint8_t format)</td></tr>
|
|
<tr class="memdesc:ab7f21651b4493fd3daaa0f1545032ff1"><td class="mdescLeft"> </td><td class="mdescRight">Set the format. <br /></td></tr>
|
|
<tr class="separator:ab7f21651b4493fd3daaa0f1545032ff1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a2206274c217d43a8ba121e1d279f8962"><td class="memItemLeft" align="right" valign="top"><a id="a2206274c217d43a8ba121e1d279f8962"></a>
|
|
void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e2904.html#a2206274c217d43a8ba121e1d279f8962">setNamespace</a> (uint8_t namespace_value)</td></tr>
|
|
<tr class="memdesc:a2206274c217d43a8ba121e1d279f8962"><td class="mdescLeft"> </td><td class="mdescRight">Set the namespace. <br /></td></tr>
|
|
<tr class="separator:a2206274c217d43a8ba121e1d279f8962"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad0cf78a2a1c3418be9a39beaa0c826ee"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e2904.html#ad0cf78a2a1c3418be9a39beaa0c826ee">setUnit</a> (uint16_t unit)</td></tr>
|
|
<tr class="memdesc:ad0cf78a2a1c3418be9a39beaa0c826ee"><td class="mdescLeft"> </td><td class="mdescRight">Set the units for this value. It should be one of the encoded values defined here: <a href="https://www.bluetooth.com/specifications/assigned-numbers/units">https://www.bluetooth.com/specifications/assigned-numbers/units</a>. <a href="class_nim_b_l_e2904.html#ad0cf78a2a1c3418be9a39beaa0c826ee">More...</a><br /></td></tr>
|
|
<tr class="separator:ad0cf78a2a1c3418be9a39beaa0c826ee"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="inherit_header pub_methods_class_nim_b_l_e_descriptor"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_nim_b_l_e_descriptor')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="class_nim_b_l_e_descriptor.html">NimBLEDescriptor</a></td></tr>
|
|
<tr class="memitem:a3cf995352eb1b1c212a7911a05c33b25 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memItemLeft" align="right" valign="top"> </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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="mdescLeft"> </td><td class="mdescRight">Construct a descriptor. <a href="class_nim_b_l_e_descriptor.html#a3cf995352eb1b1c212a7911a05c33b25">More...</a><br /></td></tr>
|
|
<tr class="separator:a3cf995352eb1b1c212a7911a05c33b25 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7ecb634b7d6390677cad232bd6be6638 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memItemLeft" align="right" valign="top"> </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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="mdescLeft"> </td><td class="mdescRight">Construct a descriptor. <a href="class_nim_b_l_e_descriptor.html#a7ecb634b7d6390677cad232bd6be6638">More...</a><br /></td></tr>
|
|
<tr class="separator:a7ecb634b7d6390677cad232bd6be6638 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad110851335bc7b225f5bea9ac11bedcc inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a486af6799753dfa60b3faddfac2adbcd inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:abc5398a570edc197fbadad3f5b45e186 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="mdescLeft"> </td><td class="mdescRight">Get the UUID of the descriptor. <br /></td></tr>
|
|
<tr class="separator:abc5398a570edc197fbadad3f5b45e186 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac15dc6c9c24d280c4b0eb766080497e5 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa9cb8727f9e17cf8050cf619e5fe3096 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a412b3735186d94e9ddcf37a06c2055e1 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a378346f59afb706d4c1d961227b98c5d inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a8f64c733c8848948fe9123bd7cd3fd53 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_nim_b_l_e_att_value.html">NimBLEAttValue</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a8f64c733c8848948fe9123bd7cd3fd53">getValue</a> (time_t *timestamp=nullptr)</td></tr>
|
|
<tr class="memdesc:a8f64c733c8848948fe9123bd7cd3fd53 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="mdescLeft"> </td><td class="mdescRight">Get the value of this descriptor. <a href="class_nim_b_l_e_descriptor.html#a8f64c733c8848948fe9123bd7cd3fd53">More...</a><br /></td></tr>
|
|
<tr class="separator:a8f64c733c8848948fe9123bd7cd3fd53 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7153e051e5808469c23e2207fa6711db inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9447cee9092dc516266f7764131ba923 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a644f739b6621702856be8db93035e9a0 inherit pub_methods_class_nim_b_l_e_descriptor"><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#a644f739b6621702856be8db93035e9a0">setValue</a> (const std::vector< uint8_t > &vec)</td></tr>
|
|
<tr class="memdesc:a644f739b6621702856be8db93035e9a0 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="mdescLeft"> </td><td class="mdescRight">Set the value of the descriptor from a <code>std::vector<uint8_t></code>.<br />
|
|
. <a href="class_nim_b_l_e_descriptor.html#a644f739b6621702856be8db93035e9a0">More...</a><br /></td></tr>
|
|
<tr class="separator:a644f739b6621702856be8db93035e9a0 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9136cc9e4b41110b3dd99d1c9553a477 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:a9136cc9e4b41110b3dd99d1c9553a477 inherit pub_methods_class_nim_b_l_e_descriptor"><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 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="mdescLeft"> </td><td class="mdescRight">Template to set the characteristic value to <type>val. <a href="class_nim_b_l_e_descriptor.html#a9136cc9e4b41110b3dd99d1c9553a477">More...</a><br /></td></tr>
|
|
<tr class="separator:a9136cc9e4b41110b3dd99d1c9553a477 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a61062547f21ca8e102ec5d8e0843c9f9 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memTemplParams" colspan="2">template<typename T > </td></tr>
|
|
<tr class="memitem:a61062547f21ca8e102ec5d8e0843c9f9 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memTemplItemLeft" align="right" valign="top">T </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_nim_b_l_e_descriptor.html#a61062547f21ca8e102ec5d8e0843c9f9">getValue</a> (time_t *timestamp=nullptr, bool skipSizeCheck=false)</td></tr>
|
|
<tr class="memdesc:a61062547f21ca8e102ec5d8e0843c9f9 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="mdescLeft"> </td><td class="mdescRight">Template to convert the descriptor data to <type>. <a href="class_nim_b_l_e_descriptor.html#a61062547f21ca8e102ec5d8e0843c9f9">More...</a><br /></td></tr>
|
|
<tr class="separator:a61062547f21ca8e102ec5d8e0843c9f9 inherit pub_methods_class_nim_b_l_e_descriptor"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>Descriptor for Characteristic Presentation Format. </p>
|
|
<p>This is a convenience descriptor for the Characteristic Presentation Format which has a UUID of 0x2904.</p>
|
|
<p>See also: <a href="https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml">https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml</a> </p>
|
|
</div><h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="ad0cf78a2a1c3418be9a39beaa0c826ee"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad0cf78a2a1c3418be9a39beaa0c826ee">◆ </a></span>setUnit()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void NimBLE2904::setUnit </td>
|
|
<td>(</td>
|
|
<td class="paramtype">uint16_t </td>
|
|
<td class="paramname"><em>unit</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p>Set the units for this value. It should be one of the encoded values defined here: <a href="https://www.bluetooth.com/specifications/assigned-numbers/units">https://www.bluetooth.com/specifications/assigned-numbers/units</a>. </p>
|
|
<dl class="params"><dt>Parameters</dt><dd>
|
|
<table class="params">
|
|
<tr><td class="paramdir">[in]</td><td class="paramname">unit</td><td>The type of units of this characteristic as defined by assigned numbers. </td></tr>
|
|
</table>
|
|
</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_e2904.html">NimBLE2904</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.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|