2021-08-05 01:02:30 +00:00
<!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 15:23:57 -07:00
< meta name = "generator" content = "Doxygen 1.9.1" />
2021-08-05 01:02:30 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" />
2022-01-15 15:23:57 -07:00
< title > esp-nimble-cpp: NimBLEDescriptor Class Reference</ title >
2021-08-05 01:02:30 +00:00
< 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 15:23:57 -07:00
< div id = "projectname" > esp-nimble-cpp
2022-07-31 11:38:16 -06:00
  < span id = "projectnumber" > 1.4.0</ span >
2021-08-05 01:02:30 +00:00
</ div >
</ td >
</ tr >
</ tbody >
</ table >
</ div >
<!-- end header part -->
2022-01-15 15:23:57 -07:00
<!-- Generated by Doxygen 1.9.1 -->
2021-08-05 01:02:30 +00:00
< 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 >
2022-07-31 11:38:16 -06:00
< tr class = "memitem:a3cf995352eb1b1c212a7911a05c33b25" >< 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" >< 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 >
2021-08-05 01:02:30 +00:00
< tr class = "separator:a3cf995352eb1b1c212a7911a05c33b25" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2022-07-31 11:38:16 -06:00
< tr class = "memitem:a7ecb634b7d6390677cad232bd6be6638" >< 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" >< 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 >
2021-08-05 01:02:30 +00:00
< 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 >
2022-07-31 11:38:16 -06:00
< 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 >
2021-08-05 01:02:30 +00:00
< 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 >
2022-07-31 11:38:16 -06:00
< tr class = "memitem:a8f64c733c8848948fe9123bd7cd3fd53" >< 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" >< 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" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2021-08-05 01:02:30 +00:00
< 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 >
2022-07-31 11:38:16 -06:00
< tr class = "memitem:a644f739b6621702856be8db93035e9a0" >< 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" >< 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" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2021-08-05 01:02:30 +00:00
< 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 >
2022-07-31 11:38:16 -06:00
< tr class = "memdesc:a9136cc9e4b41110b3dd99d1c9553a477" >< 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 >
2021-08-05 01:02:30 +00:00
< tr class = "separator:a9136cc9e4b41110b3dd99d1c9553a477" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2022-07-31 11:38:16 -06:00
< tr class = "memitem:a61062547f21ca8e102ec5d8e0843c9f9" >< td class = "memTemplParams" colspan = "2" > template< typename T > </ td ></ tr >
< tr class = "memitem:a61062547f21ca8e102ec5d8e0843c9f9" >< 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" >< 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" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
2021-08-05 01:02:30 +00:00
</ table >
< a name = "details" id = "details" ></ a >< h2 class = "groupheader" > Detailed Description</ h2 >
< div class = "textblock" >< p > A model of a BLE descriptor. </ p >
2022-07-31 11:38:16 -06:00
</ div >< h2 class = "groupheader" > Constructor & Destructor Documentation</ h2 >
< a id = "a3cf995352eb1b1c212a7911a05c33b25" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#a3cf995352eb1b1c212a7911a05c33b25" > ◆ </ a ></ span > NimBLEDescriptor() < span class = "overload" > [1/2]</ span ></ h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEDescriptor::NimBLEDescriptor </ td >
< td > (</ td >
< td class = "paramtype" > const char *  </ td >
< td class = "paramname" >< em > uuid</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > uint16_t  </ td >
< td class = "paramname" >< em > properties</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > uint16_t  </ td >
< td class = "paramname" >< em > max_len</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" >< a class = "el" href = "class_nim_b_l_e_characteristic.html" > NimBLECharacteristic</ a > *  </ td >
< td class = "paramname" >< em > pCharacteristic</ em > = < code > nullptr</ code >   </ td >
</ tr >
< tr >
< td ></ td >
< td > )</ td >
< td ></ td >< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
< p > Construct a descriptor. </ p >
< dl class = "params" >< dt > Parameters</ dt >< dd >
< table class = "params" >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > uuid</ td >< td > - UUID (const char*) for the descriptor. </ td ></ tr >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > properties</ td >< td > - Properties for the descriptor. </ td ></ tr >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > max_len</ td >< td > - The maximum length in bytes that the descriptor value can hold. (Default: 512 bytes for esp32, 20 for all others). </ td ></ tr >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > pCharacteristic</ td >< td > - pointer to the characteristic instance this descriptor belongs to. </ td ></ tr >
</ table >
</ dd >
</ dl >
</ div >
</ div >
< a id = "a7ecb634b7d6390677cad232bd6be6638" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#a7ecb634b7d6390677cad232bd6be6638" > ◆ </ a ></ span > NimBLEDescriptor() < span class = "overload" > [2/2]</ span ></ h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEDescriptor::NimBLEDescriptor </ td >
< td > (</ td >
< td class = "paramtype" >< a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID</ a >   </ td >
< td class = "paramname" >< em > uuid</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > uint16_t  </ td >
< td class = "paramname" >< em > properties</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > uint16_t  </ td >
< td class = "paramname" >< em > max_len</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" >< a class = "el" href = "class_nim_b_l_e_characteristic.html" > NimBLECharacteristic</ a > *  </ td >
< td class = "paramname" >< em > pCharacteristic</ em > = < code > nullptr</ code >   </ td >
</ tr >
< tr >
< td ></ td >
< td > )</ td >
< td ></ td >< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
< p > Construct a descriptor. </ p >
< dl class = "params" >< dt > Parameters</ dt >< dd >
< table class = "params" >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > uuid</ td >< td > - UUID (const char*) for the descriptor. </ td ></ tr >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > properties</ td >< td > - Properties for the descriptor. </ td ></ tr >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > max_len</ td >< td > - The maximum length in bytes that the descriptor value can hold. (Default: 512 bytes for esp32, 20 for all others). </ td ></ tr >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > pCharacteristic</ td >< td > - pointer to the characteristic instance this descriptor belongs to. </ td ></ tr >
</ table >
</ dd >
</ dl >
</ div >
</ div >
< h2 class = "groupheader" > Member Function Documentation</ h2 >
2021-08-05 01:02:30 +00:00
< 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 >
2022-07-31 11:38:16 -06:00
< a id = "a8f64c733c8848948fe9123bd7cd3fd53" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#a8f64c733c8848948fe9123bd7cd3fd53" > ◆ </ a ></ span > getValue() < span class = "overload" > [1/2]</ span ></ h2 >
2021-08-05 01:02:30 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
2022-07-31 11:38:16 -06:00
< td class = "memname" >< a class = "el" href = "class_nim_b_l_e_att_value.html" > NimBLEAttValue</ a > NimBLEDescriptor::getValue </ td >
2021-08-05 01:02:30 +00:00
< td > (</ td >
2022-07-31 11:38:16 -06:00
< td class = "paramtype" > time_t *  </ td >
< td class = "paramname" >< em > timestamp</ em > = < code > nullptr</ code ></ td >< td > )</ td >
2021-08-05 01:02:30 +00:00
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
< p > Get the value of this descriptor. </ p >
2022-07-31 11:38:16 -06:00
< dl class = "section return" >< dt > Returns</ dt >< dd > The < a class = "el" href = "class_nim_b_l_e_att_value.html" title = "A specialized container class to hold BLE attribute values." > NimBLEAttValue</ a > of this descriptor. </ dd ></ dl >
</ div >
</ div >
< a id = "a61062547f21ca8e102ec5d8e0843c9f9" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#a61062547f21ca8e102ec5d8e0843c9f9" > ◆ </ a ></ span > getValue() < span class = "overload" > [2/2]</ 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" > T NimBLEDescriptor::getValue </ td >
< td > (</ td >
< td class = "paramtype" > time_t *  </ td >
< td class = "paramname" >< em > timestamp</ em > = < code > nullptr</ code > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > bool  </ td >
< td class = "paramname" >< em > skipSizeCheck</ em > = < code > false</ code >   </ 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 > Template to convert the descriptor data to < type> . </ 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" > timestamp</ td >< td > (Optional) A pointer to a time_t struct to store the time the value was read. </ td ></ tr >
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > skipSizeCheck</ td >< td > (Optional) If true it will skip checking if the data size is less than < code > sizeof(< type> )</ code > . </ td ></ tr >
</ table >
</ dd >
</ dl >
< dl class = "section return" >< dt > Returns</ dt >< dd > The data converted to < type> or NULL if skipSizeCheck is false and the data is less than < code > sizeof(< type> )</ code > .</ dd ></ dl >
< p >< b > Use:</ b > < code > getValue< type> (& timestamp, skipSizeCheck);</ code > </ p >
2021-08-05 01:02:30 +00:00
</ 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 >
2022-07-31 11:38:16 -06:00
< a id = "a644f739b6621702856be8db93035e9a0" ></ a >
< h2 class = "memtitle" >< span class = "permalink" >< a href = "#a644f739b6621702856be8db93035e9a0" > ◆ </ a ></ span > setValue() < span class = "overload" > [1/3]</ span ></ h2 >
2021-08-05 01:02:30 +00:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void NimBLEDescriptor::setValue </ td >
< td > (</ td >
2022-07-31 11:38:16 -06:00
< td class = "paramtype" > const std::vector< uint8_t > &  </ td >
< td class = "paramname" >< em > vec</ em ></ td >< td > )</ td >
2021-08-05 01:02:30 +00:00
< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2022-07-31 11:38:16 -06:00
< p > Set the value of the descriptor from a < code > std::vector< uint8_t> </ code > .< br />
. </ p >
2021-08-05 01:02:30 +00:00
< dl class = "params" >< dt > Parameters</ dt >< dd >
< table class = "params" >
2022-07-31 11:38:16 -06:00
< tr >< td class = "paramdir" > [in]</ td >< td class = "paramname" > vec</ td >< td > The std::vector< uint8_t> reference to set the descriptor value from. </ td ></ tr >
2021-08-05 01:02:30 +00:00
</ 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" >
2022-07-31 11:38:16 -06:00
< p > Template to set the characteristic value to < type> val. </ p >
2021-08-05 01:02:30 +00:00
< 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 >
2022-01-15 15:23:57 -07: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 >
2021-08-05 01:02:30 +00:00
</ ul >
</ div >
</ body >
</ html >