structConnect.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.17"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>MQTT C Client Libraries Internals: Connect Struct Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="pahologo.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">MQTT C Client Libraries Internals
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.17 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. <!-- window showing the filter options -->
  50. <div id="MSearchSelectWindow"
  51. onmouseover="return searchBox.OnSearchSelectShow()"
  52. onmouseout="return searchBox.OnSearchSelectHide()"
  53. onkeydown="return searchBox.OnSearchSelectKey(event)">
  54. </div>
  55. <!-- iframe showing the search results (closed by default) -->
  56. <div id="MSearchResultsWindow">
  57. <iframe src="javascript:void(0)" frameborder="0"
  58. name="MSearchResults" id="MSearchResults">
  59. </iframe>
  60. </div>
  61. </div><!-- top -->
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#pub-attribs">Data Fields</a> </div>
  65. <div class="headertitle">
  66. <div class="title">Connect Struct Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p>Data for a connect packet.
  70. <a href="structConnect.html#details">More...</a></p>
  71. <p><code>#include &lt;MQTTPacket.h&gt;</code></p>
  72. <div class="dynheader">
  73. Collaboration diagram for Connect:</div>
  74. <div class="dyncontent">
  75. <div class="center"><img src="structConnect__coll__graph.png" border="0" usemap="#Connect_coll__map" alt="Collaboration graph"/></div>
  76. <map name="Connect_coll__map" id="Connect_coll__map">
  77. <area shape="rect" title="Data for a connect packet." alt="" coords="5,95,76,121"/>
  78. <area shape="rect" href="unionHeader.html" title="Bitfields for the MQTT header byte." alt="" coords="9,5,73,32"/>
  79. </map>
  80. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  81. <table class="memberdecls">
  82. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  83. Data Fields</h2></td></tr>
  84. <tr class="memitem:a64c92596b5ce2c01452d53d91fdf41c4"><td class="memItemLeft" align="right" valign="top"><a id="a64c92596b5ce2c01452d53d91fdf41c4"></a>
  85. <a class="el" href="unionHeader.html">Header</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#a64c92596b5ce2c01452d53d91fdf41c4">header</a></td></tr>
  86. <tr class="memdesc:a64c92596b5ce2c01452d53d91fdf41c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">MQTT header byte. <br /></td></tr>
  87. <tr class="separator:a64c92596b5ce2c01452d53d91fdf41c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:a0c84bf238adaf04ea32a2b759247d80a"><td class="memItemLeft" ><a id="a0c84bf238adaf04ea32a2b759247d80a"></a>
  89. union {</td></tr>
  90. <tr class="memitem:ab13775bd7b2de3b99f37fd5b99250d37"><td class="memItemLeft" >
  91. &#160;&#160;&#160;unsigned char&#160;&#160;&#160;<a class="el" href="structConnect.html#a7a4ee927261ade96ec6a800978f37970">all</a></td></tr>
  92. <tr class="memdesc:ab13775bd7b2de3b99f37fd5b99250d37"><td class="mdescLeft">&#160;</td><td class="mdescRight">all connect flags <br /></td></tr>
  93. <tr class="separator:ab13775bd7b2de3b99f37fd5b99250d37"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:a14f6412a24fcfc4318c7bf88b8f67f46"><td class="memItemLeft" >
  95. &#160;&#160;&#160;struct {</td></tr>
  96. <tr class="memitem:a6310202c6c49d19b6865283d985f5976"><td class="memItemLeft" >
  97. &#160;&#160;&#160;&#160;&#160;&#160;int&#160;&#160;&#160;<a class="el" href="structConnect.html#a9a33c7cfd83c02e341a8326683fa84d8">__pad0__</a>: 1</td></tr>
  98. <tr class="memdesc:a6310202c6c49d19b6865283d985f5976"><td class="mdescLeft">&#160;</td><td class="mdescRight">unused <br /></td></tr>
  99. <tr class="separator:a6310202c6c49d19b6865283d985f5976"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:ad59dd12c9f566d30422e291e852533c7"><td class="memItemLeft" >
  101. &#160;&#160;&#160;&#160;&#160;&#160;bool&#160;&#160;&#160;<a class="el" href="structConnect.html#a1ecdff766bc9f572a2d1a3ae22bd0bca">cleanstart</a>: 1</td></tr>
  102. <tr class="memdesc:ad59dd12c9f566d30422e291e852533c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">cleansession flag <br /></td></tr>
  103. <tr class="separator:ad59dd12c9f566d30422e291e852533c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a2819487215759a355065547d6747103f"><td class="memItemLeft" >
  105. &#160;&#160;&#160;&#160;&#160;&#160;bool&#160;&#160;&#160;<a class="el" href="structConnect.html#a9dc30d7b95feb8e55e98514cad4066bd">will</a>: 1</td></tr>
  106. <tr class="memdesc:a2819487215759a355065547d6747103f"><td class="mdescLeft">&#160;</td><td class="mdescRight">will flag <br /></td></tr>
  107. <tr class="separator:a2819487215759a355065547d6747103f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:abef5d98cde791434cc3ebad5663e729a"><td class="memItemLeft" >
  109. &#160;&#160;&#160;&#160;&#160;&#160;unsigned int&#160;&#160;&#160;<a class="el" href="structConnect.html#a91e5dd7084da0e9a40397c5532de5ef9">willQoS</a>: 2</td></tr>
  110. <tr class="memdesc:abef5d98cde791434cc3ebad5663e729a"><td class="mdescLeft">&#160;</td><td class="mdescRight">will QoS value <br /></td></tr>
  111. <tr class="separator:abef5d98cde791434cc3ebad5663e729a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. <tr class="memitem:ae026d52ba45642a6ecb23d12b2c9b3a5"><td class="memItemLeft" >
  113. &#160;&#160;&#160;&#160;&#160;&#160;bool&#160;&#160;&#160;<a class="el" href="structConnect.html#a0810709a016db0b8be49fc6f859bab39">willRetain</a>: 1</td></tr>
  114. <tr class="memdesc:ae026d52ba45642a6ecb23d12b2c9b3a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">will retain setting <br /></td></tr>
  115. <tr class="separator:ae026d52ba45642a6ecb23d12b2c9b3a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  116. <tr class="memitem:a0d468667a2337e6a1eb4d9dcb2ede8ff"><td class="memItemLeft" >
  117. &#160;&#160;&#160;&#160;&#160;&#160;bool&#160;&#160;&#160;<a class="el" href="structConnect.html#a5ad7b3bbaab88cc22692b849f31b2756">password</a>: 1</td></tr>
  118. <tr class="memdesc:a0d468667a2337e6a1eb4d9dcb2ede8ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">3.1 password <br /></td></tr>
  119. <tr class="separator:a0d468667a2337e6a1eb4d9dcb2ede8ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:ad4265bd727638872c05589810a3bcd0b"><td class="memItemLeft" >
  121. &#160;&#160;&#160;&#160;&#160;&#160;bool&#160;&#160;&#160;<a class="el" href="structConnect.html#a68d27f5f6b5fad14969d69340acfc5e9">username</a>: 1</td></tr>
  122. <tr class="memdesc:ad4265bd727638872c05589810a3bcd0b"><td class="mdescLeft">&#160;</td><td class="mdescRight">3.1 user name <br /></td></tr>
  123. <tr class="separator:ad4265bd727638872c05589810a3bcd0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. <tr class="memitem:a14f6412a24fcfc4318c7bf88b8f67f46"><td class="memItemLeft" valign="top">&#160;&#160;&#160;}&#160;&#160;&#160;<b>bits</b></td></tr>
  125. <tr class="separator:a14f6412a24fcfc4318c7bf88b8f67f46"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:a0c84bf238adaf04ea32a2b759247d80a"><td class="memItemLeft" valign="top">}&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#a0c84bf238adaf04ea32a2b759247d80a">flags</a></td></tr>
  127. <tr class="memdesc:a0c84bf238adaf04ea32a2b759247d80a"><td class="mdescLeft">&#160;</td><td class="mdescRight">connect flags byte <br /></td></tr>
  128. <tr class="separator:a0c84bf238adaf04ea32a2b759247d80a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:ab87417598de200c235ce28e8947f8804"><td class="memItemLeft" align="right" valign="top"><a id="ab87417598de200c235ce28e8947f8804"></a>
  130. char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#ab87417598de200c235ce28e8947f8804">Protocol</a></td></tr>
  131. <tr class="memdesc:ab87417598de200c235ce28e8947f8804"><td class="mdescLeft">&#160;</td><td class="mdescRight">MQTT protocol name. <br /></td></tr>
  132. <tr class="separator:ab87417598de200c235ce28e8947f8804"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:aa0063fa6349a7fb5be89cf1cbe4043b4"><td class="memItemLeft" align="right" valign="top"><a id="aa0063fa6349a7fb5be89cf1cbe4043b4"></a>
  134. char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#aa0063fa6349a7fb5be89cf1cbe4043b4">clientID</a></td></tr>
  135. <tr class="memdesc:aa0063fa6349a7fb5be89cf1cbe4043b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">string client id <br /></td></tr>
  136. <tr class="separator:aa0063fa6349a7fb5be89cf1cbe4043b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:a8e0ff745f3800cf1a56a0cd467b5138e"><td class="memItemLeft" align="right" valign="top"><a id="a8e0ff745f3800cf1a56a0cd467b5138e"></a>
  138. char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#a8e0ff745f3800cf1a56a0cd467b5138e">willTopic</a></td></tr>
  139. <tr class="memdesc:a8e0ff745f3800cf1a56a0cd467b5138e"><td class="mdescLeft">&#160;</td><td class="mdescRight">will topic <br /></td></tr>
  140. <tr class="separator:a8e0ff745f3800cf1a56a0cd467b5138e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a525eb0974d4e5b3158808e0bb23f03e6"><td class="memItemLeft" align="right" valign="top"><a id="a525eb0974d4e5b3158808e0bb23f03e6"></a>
  142. char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#a525eb0974d4e5b3158808e0bb23f03e6">willMsg</a></td></tr>
  143. <tr class="memdesc:a525eb0974d4e5b3158808e0bb23f03e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">will payload <br /></td></tr>
  144. <tr class="separator:a525eb0974d4e5b3158808e0bb23f03e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="memitem:a5274defe9badb8c5e46e7b674c548441"><td class="memItemLeft" align="right" valign="top"><a id="a5274defe9badb8c5e46e7b674c548441"></a>
  146. int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#a5274defe9badb8c5e46e7b674c548441">keepAliveTimer</a></td></tr>
  147. <tr class="memdesc:a5274defe9badb8c5e46e7b674c548441"><td class="mdescLeft">&#160;</td><td class="mdescRight">keepalive timeout value in seconds <br /></td></tr>
  148. <tr class="separator:a5274defe9badb8c5e46e7b674c548441"><td class="memSeparator" colspan="2">&#160;</td></tr>
  149. <tr class="memitem:a35cba4252092877e572c5c74b41be6e2"><td class="memItemLeft" align="right" valign="top"><a id="a35cba4252092877e572c5c74b41be6e2"></a>
  150. unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structConnect.html#a35cba4252092877e572c5c74b41be6e2">version</a></td></tr>
  151. <tr class="memdesc:a35cba4252092877e572c5c74b41be6e2"><td class="mdescLeft">&#160;</td><td class="mdescRight">MQTT version number. <br /></td></tr>
  152. <tr class="separator:a35cba4252092877e572c5c74b41be6e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. </table>
  154. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  155. <div class="textblock"><p>Data for a connect packet. </p>
  156. </div><hr/>The documentation for this struct was generated from the following file:<ul>
  157. <li>MQTTPacket.h</li>
  158. </ul>
  159. </div><!-- contents -->
  160. <!-- start footer part -->
  161. <hr class="footer"/><address class="footer"><small>
  162. Generated on Thu Sep 29 2022 11:34:46 for MQTT C Client Libraries Internals by &#160;<a href="http://www.doxygen.org/index.html">
  163. <img class="footer" src="doxygen.png" alt="doxygen"/>
  164. </a> 1.8.17
  165. </small></address>
  166. </body>
  167. </html>