2021-08-05 03:02:30 +02: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 23:23:57 +01:00
< meta name = "generator" content = "Doxygen 1.9.1" / >
2021-08-05 03:02:30 +02:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
2022-01-15 23:23:57 +01:00
< title > esp-nimble-cpp: NimBLEUUID Class Reference< / title >
2021-08-05 03:02:30 +02: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 23:23:57 +01:00
< div id = "projectname" > esp-nimble-cpp
2022-07-31 19:38:16 +02:00
  < span id = "projectnumber" > 1.4.0< / span >
2021-08-05 03:02:30 +02:00
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2022-01-15 23:23:57 +01:00
<!-- Generated by Doxygen 1.9.1 -->
2021-08-05 03:02:30 +02: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_u_u_i_d.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 = "#pub-static-methods" > Static Public Member Functions< / a > |
< a href = "class_nim_b_l_e_u_u_i_d-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > NimBLEUUID Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > A model of a BLE UUID.
< a href = "class_nim_b_l_e_u_u_i_d.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:a6fd3849062c96cee3d6cd00544fadfac" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a6fd3849062c96cee3d6cd00544fadfac" > NimBLEUUID< / a > (const std::string & uuid)< / td > < / tr >
< tr class = "memdesc:a6fd3849062c96cee3d6cd00544fadfac" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a UUID from a string. < a href = "class_nim_b_l_e_u_u_i_d.html#a6fd3849062c96cee3d6cd00544fadfac" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a6fd3849062c96cee3d6cd00544fadfac" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aadbfc5504e63cd91c59c778607b8dd92" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#aadbfc5504e63cd91c59c778607b8dd92" > NimBLEUUID< / a > (uint16_t uuid)< / td > < / tr >
< tr class = "memdesc:aadbfc5504e63cd91c59c778607b8dd92" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a UUID from the 16bit value. < a href = "class_nim_b_l_e_u_u_i_d.html#aadbfc5504e63cd91c59c778607b8dd92" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:aadbfc5504e63cd91c59c778607b8dd92" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab4e1658b1c414edb9aea5cf5140fa461" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#ab4e1658b1c414edb9aea5cf5140fa461" > NimBLEUUID< / a > (uint32_t uuid)< / td > < / tr >
< tr class = "memdesc:ab4e1658b1c414edb9aea5cf5140fa461" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a UUID from the 32bit value. < a href = "class_nim_b_l_e_u_u_i_d.html#ab4e1658b1c414edb9aea5cf5140fa461" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ab4e1658b1c414edb9aea5cf5140fa461" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ac9fbd00e7ffeb334571016c61bca9286" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#ac9fbd00e7ffeb334571016c61bca9286" > NimBLEUUID< / a > (const ble_uuid128_t *uuid)< / td > < / tr >
< tr class = "memdesc:ac9fbd00e7ffeb334571016c61bca9286" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a UUID from the native UUID. < a href = "class_nim_b_l_e_u_u_i_d.html#ac9fbd00e7ffeb334571016c61bca9286" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ac9fbd00e7ffeb334571016c61bca9286" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6eda1a14d4590dd25e6a2f7a49ad528e" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a6eda1a14d4590dd25e6a2f7a49ad528e" > NimBLEUUID< / a > (const uint8_t *pData, size_t size, bool msbFirst)< / td > < / tr >
< tr class = "memdesc:a6eda1a14d4590dd25e6a2f7a49ad528e" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a UUID from 2, 4, 16 bytes of memory. < a href = "class_nim_b_l_e_u_u_i_d.html#a6eda1a14d4590dd25e6a2f7a49ad528e" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a6eda1a14d4590dd25e6a2f7a49ad528e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a399dca7d70ee262aa155b39d357321b1" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a399dca7d70ee262aa155b39d357321b1" > NimBLEUUID< / a > (uint32_t first, uint16_t second, uint16_t third, uint64_t fourth)< / td > < / tr >
< tr class = "memdesc:a399dca7d70ee262aa155b39d357321b1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Create a UUID from the 128bit value using hex parts instead of string, instead of < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID< / a > ("ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6"), it becomes < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID(0xebe0ccb0, 0x7a0a, 0x4b0c, 0x8a1a6ff2997da3a6)< / a > < a href = "class_nim_b_l_e_u_u_i_d.html#a399dca7d70ee262aa155b39d357321b1" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a399dca7d70ee262aa155b39d357321b1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abec7913c5989c3620c423c6717111453" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "abec7913c5989c3620c423c6717111453" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#abec7913c5989c3620c423c6717111453" > NimBLEUUID< / a > ()< / td > < / tr >
< tr class = "memdesc:abec7913c5989c3620c423c6717111453" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Creates an empty UUID. < br / > < / td > < / tr >
< tr class = "separator:abec7913c5989c3620c423c6717111453" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aefc88e493b63ccd6dc86227dc92af0c6" > < td class = "memItemLeft" align = "right" valign = "top" > uint8_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#aefc88e493b63ccd6dc86227dc92af0c6" > bitSize< / a > () const< / td > < / tr >
< tr class = "memdesc:aefc88e493b63ccd6dc86227dc92af0c6" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get the number of bits in this uuid. < a href = "class_nim_b_l_e_u_u_i_d.html#aefc88e493b63ccd6dc86227dc92af0c6" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:aefc88e493b63ccd6dc86227dc92af0c6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a3d9763ff434905457ed69118e93a35fd" > < td class = "memItemLeft" align = "right" valign = "top" > bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a3d9763ff434905457ed69118e93a35fd" > equals< / a > (const < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID< / a > & uuid) const< / td > < / tr >
< tr class = "memdesc:a3d9763ff434905457ed69118e93a35fd" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Compare a UUID against this UUID. < a href = "class_nim_b_l_e_u_u_i_d.html#a3d9763ff434905457ed69118e93a35fd" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a3d9763ff434905457ed69118e93a35fd" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a62e8e924f971c62cc42760d8c7dd6f28" > < td class = "memItemLeft" align = "right" valign = "top" > const ble_uuid_any_t *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a62e8e924f971c62cc42760d8c7dd6f28" > getNative< / a > () const< / td > < / tr >
< tr class = "memdesc:a62e8e924f971c62cc42760d8c7dd6f28" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get the native UUID value. < a href = "class_nim_b_l_e_u_u_i_d.html#a62e8e924f971c62cc42760d8c7dd6f28" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a62e8e924f971c62cc42760d8c7dd6f28" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7103976da820d0c1840aa77aca38306c" > < td class = "memItemLeft" align = "right" valign = "top" > const < 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_u_u_i_d.html#a7103976da820d0c1840aa77aca38306c" > to128< / a > ()< / td > < / tr >
< tr class = "memdesc:a7103976da820d0c1840aa77aca38306c" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convert a UUID to its 128 bit representation. < a href = "class_nim_b_l_e_u_u_i_d.html#a7103976da820d0c1840aa77aca38306c" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a7103976da820d0c1840aa77aca38306c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2022-07-31 19:38:16 +02:00
< tr class = "memitem:a618f6c29565338a496715ca951c98afb" > < td class = "memItemLeft" align = "right" valign = "top" > const < 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_u_u_i_d.html#a618f6c29565338a496715ca951c98afb" > to16< / a > ()< / td > < / tr >
< tr class = "memdesc:a618f6c29565338a496715ca951c98afb" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convert 128 bit UUID to its 16 bit representation. < a href = "class_nim_b_l_e_u_u_i_d.html#a618f6c29565338a496715ca951c98afb" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a618f6c29565338a496715ca951c98afb" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2021-08-05 03:02:30 +02:00
< tr class = "memitem:a9708e07b8e0915aafcfa32fe74ccdf64" > < td class = "memItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a9708e07b8e0915aafcfa32fe74ccdf64" > toString< / a > () const< / td > < / tr >
< tr class = "memdesc:a9708e07b8e0915aafcfa32fe74ccdf64" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Get a string representation of the UUID. < a href = "class_nim_b_l_e_u_u_i_d.html#a9708e07b8e0915aafcfa32fe74ccdf64" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a9708e07b8e0915aafcfa32fe74ccdf64" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a46484dcb0a1bfef6a8afe97f49f97875" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "a46484dcb0a1bfef6a8afe97f49f97875" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a46484dcb0a1bfef6a8afe97f49f97875" > operator==< / a > (const < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID< / a > & rhs) const< / td > < / tr >
2022-07-31 19:38:16 +02:00
< tr class = "memdesc:a46484dcb0a1bfef6a8afe97f49f97875" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convenience operator to check if this UUID is equal to another. < br / > < / td > < / tr >
2021-08-05 03:02:30 +02:00
< tr class = "separator:a46484dcb0a1bfef6a8afe97f49f97875" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abeee22e6661f7533f05802e1f89fedfe" > < td class = "memItemLeft" align = "right" valign = "top" > < a id = "abeee22e6661f7533f05802e1f89fedfe" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#abeee22e6661f7533f05802e1f89fedfe" > operator!=< / a > (const < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID< / a > & rhs) const< / td > < / tr >
2022-07-31 19:38:16 +02:00
< tr class = "memdesc:abeee22e6661f7533f05802e1f89fedfe" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convenience operator to check if this UUID is not equal to another. < br / > < / td > < / tr >
2021-08-05 03:02:30 +02:00
< tr class = "separator:abeee22e6661f7533f05802e1f89fedfe" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a4315e760bf763333022658ff980f3048" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html#a4315e760bf763333022658ff980f3048" > operator std::string< / a > () const< / td > < / tr >
2022-07-31 19:38:16 +02:00
< tr class = "memdesc:a4315e760bf763333022658ff980f3048" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Convenience operator to convert this UUID to string representation. < a href = "class_nim_b_l_e_u_u_i_d.html#a4315e760bf763333022658ff980f3048" > More...< / a > < br / > < / td > < / tr >
2021-08-05 03:02:30 +02:00
< tr class = "separator:a4315e760bf763333022658ff980f3048" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-static-methods" > < / a >
Static Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:ae09acdc52e23a3a38c57aaf859c278c2" > < td class = "memItemLeft" align = "right" valign = "top" > static < 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_u_u_i_d.html#ae09acdc52e23a3a38c57aaf859c278c2" > fromString< / a > (const std::string & uuid)< / td > < / tr >
< tr class = "separator:ae09acdc52e23a3a38c57aaf859c278c2" > < 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 UUID. < / p >
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
< a id = "a6fd3849062c96cee3d6cd00544fadfac" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6fd3849062c96cee3d6cd00544fadfac" > ◆ < / a > < / span > NimBLEUUID() < span class = "overload" > [1/6]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEUUID::NimBLEUUID < / 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 > Create a UUID from a string. < / p >
< p > Create a UUID from a string. There will be two possible stories here. Either the string represents a binary data field or the string represents a hex encoding of a UUID. For the hex encoding, here is an example:< / p >
< div class = "fragment" > < div class = "line" > < span class = "stringliteral" > " beb5483e-36e1-4688-b7f5-ea07361b26a8" < / span > < / div >
< div class = "line" > 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5< / div >
< div class = "line" > 12345678-90ab-cdef-1234-567890abcdef< / div >
< / div > <!-- fragment --> < p > This has a length of 36 characters. We need to parse this into 16 bytes.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > value< / td > < td > The string to build a UUID from. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "aadbfc5504e63cd91c59c778607b8dd92" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aadbfc5504e63cd91c59c778607b8dd92" > ◆ < / a > < / span > NimBLEUUID() < span class = "overload" > [2/6]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEUUID::NimBLEUUID < / td >
< td > (< / td >
< td class = "paramtype" > uint16_t  < / td >
< td class = "paramname" > < em > uuid< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Create a UUID from the 16bit value. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > uuid< / td > < td > The 16bit short form UUID. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "ab4e1658b1c414edb9aea5cf5140fa461" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ab4e1658b1c414edb9aea5cf5140fa461" > ◆ < / a > < / span > NimBLEUUID() < span class = "overload" > [3/6]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEUUID::NimBLEUUID < / td >
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > uuid< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Create a UUID from the 32bit value. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > uuid< / td > < td > The 32bit short form UUID. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "ac9fbd00e7ffeb334571016c61bca9286" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ac9fbd00e7ffeb334571016c61bca9286" > ◆ < / a > < / span > NimBLEUUID() < span class = "overload" > [4/6]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEUUID::NimBLEUUID < / td >
< td > (< / td >
< td class = "paramtype" > const ble_uuid128_t *  < / td >
< td class = "paramname" > < em > uuid< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Create a UUID from the native UUID. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > uuid< / td > < td > The native UUID. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "a6eda1a14d4590dd25e6a2f7a49ad528e" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a6eda1a14d4590dd25e6a2f7a49ad528e" > ◆ < / a > < / span > NimBLEUUID() < span class = "overload" > [5/6]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEUUID::NimBLEUUID < / td >
< td > (< / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > pData< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > size_t  < / td >
< td class = "paramname" > < em > size< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > bool  < / td >
< td class = "paramname" > < em > msbFirst< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Create a UUID from 2, 4, 16 bytes of memory. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > pData< / td > < td > The pointer to the start of the UUID. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > size< / td > < td > The size of the data. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > msbFirst< / td > < td > Is the MSB first in pData memory? < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "a399dca7d70ee262aa155b39d357321b1" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a399dca7d70ee262aa155b39d357321b1" > ◆ < / a > < / span > NimBLEUUID() < span class = "overload" > [6/6]< / span > < / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEUUID::NimBLEUUID < / td >
< td > (< / td >
< td class = "paramtype" > uint32_t  < / td >
< td class = "paramname" > < em > first< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint16_t  < / td >
< td class = "paramname" > < em > second< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint16_t  < / td >
< td class = "paramname" > < em > third< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > uint64_t  < / td >
< td class = "paramname" > < em > fourth< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Create a UUID from the 128bit value using hex parts instead of string, instead of < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID< / a > ("ebe0ccb0-7a0a-4b0c-8a1a-6ff2997da3a6"), it becomes < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID(0xebe0ccb0, 0x7a0a, 0x4b0c, 0x8a1a6ff2997da3a6)< / a > < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > first< / td > < td > The first 32bit of the UUID. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > second< / td > < td > The next 16bit of the UUID. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > third< / td > < td > The next 16bit of the UUID. < / td > < / tr >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > fourth< / td > < td > The last 64bit of the UUID, combining the last 2 parts of the string equivalent < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a id = "aefc88e493b63ccd6dc86227dc92af0c6" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aefc88e493b63ccd6dc86227dc92af0c6" > ◆ < / a > < / span > bitSize()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > uint8_t NimBLEUUID::bitSize < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Get the number of bits in this uuid. < / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > The number of bits in the UUID. One of 16, 32 or 128. < / dd > < / dl >
< / div >
< / div >
< a id = "a3d9763ff434905457ed69118e93a35fd" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a3d9763ff434905457ed69118e93a35fd" > ◆ < / a > < / span > equals()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > bool NimBLEUUID::equals < / td >
< td > (< / td >
< td class = "paramtype" > const < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID< / a > &   < / td >
< td class = "paramname" > < em > uuid< / em > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Compare a UUID against this UUID. < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > uuid< / td > < td > The UUID to compare against. < / td > < / tr >
< / table >
< / dd >
< / dl >
< dl class = "section return" > < dt > Returns< / dt > < dd > True if the UUIDs are equal and false otherwise. < / dd > < / dl >
< / div >
< / div >
< a id = "ae09acdc52e23a3a38c57aaf859c278c2" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ae09acdc52e23a3a38c57aaf859c278c2" > ◆ < / a > < / span > fromString()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID< / a > NimBLEUUID::fromString < / td >
< td > (< / td >
< td class = "paramtype" > const std::string &   < / td >
< td class = "paramname" > < em > uuid< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > static< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Create a < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID< / a > from a string of the form: 0xNNNN 0xNNNNNNNN 0x< UUID> NNNN NNNNNNNN < UUID> < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramdir" > [in]< / td > < td class = "paramname" > uuid< / td > < td > The string to create the UUID from. < / td > < / tr >
< / table >
< / dd >
< / dl >
< / div >
< / div >
< a id = "a62e8e924f971c62cc42760d8c7dd6f28" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a62e8e924f971c62cc42760d8c7dd6f28" > ◆ < / a > < / span > getNative()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > const ble_uuid_any_t * NimBLEUUID::getNative < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Get the native UUID value. < / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > The native UUID value or nullptr if not set. < / dd > < / dl >
< / div >
< / div >
< a id = "a4315e760bf763333022658ff980f3048" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a4315e760bf763333022658ff980f3048" > ◆ < / a > < / span > operator std::string()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > NimBLEUUID::operator std::string < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
2022-07-31 19:38:16 +02:00
< p > Convenience operator to convert this UUID to string representation. < / p >
2021-08-05 03:02:30 +02:00
< p > This allows passing < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID< / a > to functions that accept std::string and/or or it's methods as a parameter. < / p >
< / div >
< / div >
< a id = "a7103976da820d0c1840aa77aca38306c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a7103976da820d0c1840aa77aca38306c" > ◆ < / a > < / span > to128()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > const < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID< / a > & NimBLEUUID::to128 < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Convert a UUID to its 128 bit representation. < / p >
2022-07-31 19:38:16 +02:00
< p > A UUID can be internally represented as 16bit, 32bit or the full 128bit. This method will convert 16 or 32bit representations to the full 128bit. < / p > < dl class = "section return" > < dt > Returns< / dt > < dd > The < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID< / a > converted to 128bit. < / dd > < / dl >
< / div >
< / div >
< a id = "a618f6c29565338a496715ca951c98afb" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a618f6c29565338a496715ca951c98afb" > ◆ < / a > < / span > to16()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > const < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" > NimBLEUUID< / a > & NimBLEUUID::to16 < / td >
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Convert 128 bit UUID to its 16 bit representation. < / p >
< p > A UUID can be internally represented as 16bit, 32bit or the full 128bit. This method will convert a 128bit uuid to 16bit if it contains the ble base uuid. < / p > < dl class = "section return" > < dt > Returns< / dt > < dd > The < a class = "el" href = "class_nim_b_l_e_u_u_i_d.html" title = "A model of a BLE UUID." > NimBLEUUID< / a > converted to 16bit if successful, otherwise the original uuid. < / dd > < / dl >
2021-08-05 03:02:30 +02:00
< / div >
< / div >
< a id = "a9708e07b8e0915aafcfa32fe74ccdf64" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a9708e07b8e0915aafcfa32fe74ccdf64" > ◆ < / a > < / span > toString()< / h2 >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > std::string NimBLEUUID::toString < / td >
< td > (< / td >
< td class = "paramtype" > void  < / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > const< / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Get a string representation of the UUID. < / p >
< p > The format of a string is: 01234567 8901 2345 6789 012345678901 0000180d-0000-1000-8000-00805f9b34fb 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5< / p >
< dl class = "section return" > < dt > Returns< / dt > < dd > A string representation of the UUID. < / dd > < / dl >
< dl class = "deprecated" > < dt > < b > < a class = "el" href = "deprecated.html#_deprecated000013" > Deprecated:< / a > < / b > < / dt > < dd > Use std::string() operator instead. < / 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_u_u_i_d.html" > NimBLEUUID< / 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 >
2021-08-05 03:02:30 +02:00
< / ul >
< / div >
< / body >
< / html >