structMQTTClient__connectOptions.html 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443
  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: MQTTClient_connectOptions 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">MQTTClient_connectOptions Struct Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p><a class="el" href="structMQTTClient__connectOptions.html" title="MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT...">MQTTClient_connectOptions</a> defines several settings that control the way the client connects to an MQTT server.
  70. <a href="structMQTTClient__connectOptions.html#details">More...</a></p>
  71. <p><code>#include &lt;MQTTClient.h&gt;</code></p>
  72. <div class="dynheader">
  73. Collaboration diagram for MQTTClient_connectOptions:</div>
  74. <div class="dyncontent">
  75. <div class="center"><img src="structMQTTClient__connectOptions__coll__graph.png" border="0" usemap="#MQTTClient__connectOptions_coll__map" alt="Collaboration graph"/></div>
  76. <map name="MQTTClient__connectOptions_coll__map" id="MQTTClient__connectOptions_coll__map">
  77. <area shape="rect" title="MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT..." alt="" coords="179,95,370,121"/>
  78. <area shape="rect" href="structMQTTClient__willOptions.html" title="MQTTClient_willOptions defines the MQTT &quot;Last Will and Testament&quot; (LWT) settings for the client." alt="" coords="5,5,168,32"/>
  79. <area shape="rect" href="structMQTTClient__nameValue.html" title="MQTTClient_libraryInfo is used to store details relating to the currently used library such as the ve..." alt="" coords="193,5,357,32"/>
  80. <area shape="rect" href="structMQTTClient__SSLOptions.html" title="MQTTClient_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL li..." alt="" coords="381,5,552,32"/>
  81. </map>
  82. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  83. <table class="memberdecls">
  84. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  85. Data Fields</h2></td></tr>
  86. <tr class="memitem:ab2e2302e3cc1105d6c93ae1e8205d60c"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#ab2e2302e3cc1105d6c93ae1e8205d60c">struct_id</a> [4]</td></tr>
  87. <tr class="memdesc:ab2e2302e3cc1105d6c93ae1e8205d60c"><td class="mdescLeft">&#160;</td><td class="mdescRight">The eyecatcher for this structure. <a href="structMQTTClient__connectOptions.html#ab2e2302e3cc1105d6c93ae1e8205d60c">More...</a><br /></td></tr>
  88. <tr class="separator:ab2e2302e3cc1105d6c93ae1e8205d60c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:a0b07612dc569b59f7f937ff0c518a1bb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a0b07612dc569b59f7f937ff0c518a1bb">struct_version</a></td></tr>
  90. <tr class="memdesc:a0b07612dc569b59f7f937ff0c518a1bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">The version number of this structure. <a href="structMQTTClient__connectOptions.html#a0b07612dc569b59f7f937ff0c518a1bb">More...</a><br /></td></tr>
  91. <tr class="separator:a0b07612dc569b59f7f937ff0c518a1bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:a7de757dd172a63d699290d582aa0f798"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a7de757dd172a63d699290d582aa0f798">keepAliveInterval</a></td></tr>
  93. <tr class="memdesc:a7de757dd172a63d699290d582aa0f798"><td class="mdescLeft">&#160;</td><td class="mdescRight">The "keep alive" interval, measured in seconds, defines the maximum time that should pass without communication between the client and the server The client will ensure that at least one message travels across the network within each keep alive period. <a href="structMQTTClient__connectOptions.html#a7de757dd172a63d699290d582aa0f798">More...</a><br /></td></tr>
  94. <tr class="separator:a7de757dd172a63d699290d582aa0f798"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:a03a2cfaf17483f1b0aab2a70f3ef30d9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a03a2cfaf17483f1b0aab2a70f3ef30d9">cleansession</a></td></tr>
  96. <tr class="memdesc:a03a2cfaf17483f1b0aab2a70f3ef30d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a boolean value. <a href="structMQTTClient__connectOptions.html#a03a2cfaf17483f1b0aab2a70f3ef30d9">More...</a><br /></td></tr>
  97. <tr class="separator:a03a2cfaf17483f1b0aab2a70f3ef30d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:acd6367d7a402e7b668f8ec9760cd42c8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#acd6367d7a402e7b668f8ec9760cd42c8">reliable</a></td></tr>
  99. <tr class="memdesc:acd6367d7a402e7b668f8ec9760cd42c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a boolean value that controls how many messages can be in-flight simultaneously. <a href="structMQTTClient__connectOptions.html#acd6367d7a402e7b668f8ec9760cd42c8">More...</a><br /></td></tr>
  100. <tr class="separator:acd6367d7a402e7b668f8ec9760cd42c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:a8d51a29a49d2a964d5079c9bae3fcffd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMQTTClient__willOptions.html">MQTTClient_willOptions</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a8d51a29a49d2a964d5079c9bae3fcffd">will</a></td></tr>
  102. <tr class="memdesc:a8d51a29a49d2a964d5079c9bae3fcffd"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a pointer to an <a class="el" href="structMQTTClient__willOptions.html" title="MQTTClient_willOptions defines the MQTT &quot;Last Will and Testament&quot; (LWT) settings for the client.">MQTTClient_willOptions</a> structure. <a href="structMQTTClient__connectOptions.html#a8d51a29a49d2a964d5079c9bae3fcffd">More...</a><br /></td></tr>
  103. <tr class="separator:a8d51a29a49d2a964d5079c9bae3fcffd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:a82e337534835601827defa911325299a"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a82e337534835601827defa911325299a">username</a></td></tr>
  105. <tr class="memdesc:a82e337534835601827defa911325299a"><td class="mdescLeft">&#160;</td><td class="mdescRight">MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user name and password. <a href="structMQTTClient__connectOptions.html#a82e337534835601827defa911325299a">More...</a><br /></td></tr>
  106. <tr class="separator:a82e337534835601827defa911325299a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a8f0e7e9e217a913fa8e200e2d5e45f6e"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a8f0e7e9e217a913fa8e200e2d5e45f6e">password</a></td></tr>
  108. <tr class="memdesc:a8f0e7e9e217a913fa8e200e2d5e45f6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user name and password. <a href="structMQTTClient__connectOptions.html#a8f0e7e9e217a913fa8e200e2d5e45f6e">More...</a><br /></td></tr>
  109. <tr class="separator:a8f0e7e9e217a913fa8e200e2d5e45f6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:ab6713be91e99a94a7168bbcac02f6beb"><td class="memItemLeft" align="right" valign="top"><a id="ab6713be91e99a94a7168bbcac02f6beb"></a>
  111. int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#ab6713be91e99a94a7168bbcac02f6beb">connectTimeout</a></td></tr>
  112. <tr class="memdesc:ab6713be91e99a94a7168bbcac02f6beb"><td class="mdescLeft">&#160;</td><td class="mdescRight">The time interval in seconds to allow a connect to complete. <br /></td></tr>
  113. <tr class="separator:ab6713be91e99a94a7168bbcac02f6beb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  114. <tr class="memitem:aabeb07cc7a2aa18fc1fb365503185c62"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#aabeb07cc7a2aa18fc1fb365503185c62">retryInterval</a></td></tr>
  115. <tr class="memdesc:aabeb07cc7a2aa18fc1fb365503185c62"><td class="mdescLeft">&#160;</td><td class="mdescRight">The time interval in seconds after which unacknowledged publish requests are retried during a TCP session. <a href="structMQTTClient__connectOptions.html#aabeb07cc7a2aa18fc1fb365503185c62">More...</a><br /></td></tr>
  116. <tr class="separator:aabeb07cc7a2aa18fc1fb365503185c62"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a4e6be3b2292800db30c65dd66af85976"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMQTTClient__SSLOptions.html">MQTTClient_SSLOptions</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a4e6be3b2292800db30c65dd66af85976">ssl</a></td></tr>
  118. <tr class="memdesc:a4e6be3b2292800db30c65dd66af85976"><td class="mdescLeft">&#160;</td><td class="mdescRight">This is a pointer to an <a class="el" href="structMQTTClient__SSLOptions.html" title="MQTTClient_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL li...">MQTTClient_SSLOptions</a> structure. <a href="structMQTTClient__connectOptions.html#a4e6be3b2292800db30c65dd66af85976">More...</a><br /></td></tr>
  119. <tr class="separator:a4e6be3b2292800db30c65dd66af85976"><td class="memSeparator" colspan="2">&#160;</td></tr>
  120. <tr class="memitem:a71667cbc2aa857db5b831a1e6a4a1ec9"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a71667cbc2aa857db5b831a1e6a4a1ec9">serverURIcount</a></td></tr>
  121. <tr class="memdesc:a71667cbc2aa857db5b831a1e6a4a1ec9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The number of entries in the optional serverURIs array. <a href="structMQTTClient__connectOptions.html#a71667cbc2aa857db5b831a1e6a4a1ec9">More...</a><br /></td></tr>
  122. <tr class="separator:a71667cbc2aa857db5b831a1e6a4a1ec9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:aec63485af96db24d26868d3a19a83504"><td class="memItemLeft" align="right" valign="top">char *const *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#aec63485af96db24d26868d3a19a83504">serverURIs</a></td></tr>
  124. <tr class="memdesc:aec63485af96db24d26868d3a19a83504"><td class="mdescLeft">&#160;</td><td class="mdescRight">An optional array of null-terminated strings specifying the servers to which the client will connect. <a href="structMQTTClient__connectOptions.html#aec63485af96db24d26868d3a19a83504">More...</a><br /></td></tr>
  125. <tr class="separator:aec63485af96db24d26868d3a19a83504"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:ac5990907e10165a71e6b3c163f2f1eef"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#ac5990907e10165a71e6b3c163f2f1eef">MQTTVersion</a></td></tr>
  127. <tr class="memdesc:ac5990907e10165a71e6b3c163f2f1eef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the version of MQTT to be used on the connect. <a href="structMQTTClient__connectOptions.html#ac5990907e10165a71e6b3c163f2f1eef">More...</a><br /></td></tr>
  128. <tr class="separator:ac5990907e10165a71e6b3c163f2f1eef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a198e91c4adb81b5851cbd5c2eb14424e"><td class="memItemLeft" ><a id="a198e91c4adb81b5851cbd5c2eb14424e"></a>
  130. struct {</td></tr>
  131. <tr class="memitem:acd256482ac3d33651292b5792bcc76df"><td class="memItemLeft" >
  132. &#160;&#160;&#160;const char *&#160;&#160;&#160;<a class="el" href="structMQTTClient__connectOptions.html#a31f882b2966272a53b2bee33cb1aea8c">serverURI</a></td></tr>
  133. <tr class="memdesc:acd256482ac3d33651292b5792bcc76df"><td class="mdescLeft">&#160;</td><td class="mdescRight">the serverURI connected to <br /></td></tr>
  134. <tr class="separator:acd256482ac3d33651292b5792bcc76df"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:ae25636add9153b1ac70554a60ff6b256"><td class="memItemLeft" >
  136. &#160;&#160;&#160;int&#160;&#160;&#160;<a class="el" href="structMQTTClient__connectOptions.html#ac5990907e10165a71e6b3c163f2f1eef">MQTTVersion</a></td></tr>
  137. <tr class="memdesc:ae25636add9153b1ac70554a60ff6b256"><td class="mdescLeft">&#160;</td><td class="mdescRight">the MQTT version used to connect with <br /></td></tr>
  138. <tr class="separator:ae25636add9153b1ac70554a60ff6b256"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:aa1ae0c9ec6677d0ab3c866e5a9bc45be"><td class="memItemLeft" >
  140. &#160;&#160;&#160;int&#160;&#160;&#160;<a class="el" href="structMQTTClient__connectOptions.html#a2ed78107fecaa4639a170f63ca42d507">sessionPresent</a></td></tr>
  141. <tr class="memdesc:aa1ae0c9ec6677d0ab3c866e5a9bc45be"><td class="mdescLeft">&#160;</td><td class="mdescRight">if the MQTT version is 3.1.1, the value of sessionPresent returned in the connack <br /></td></tr>
  142. <tr class="separator:aa1ae0c9ec6677d0ab3c866e5a9bc45be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:a198e91c4adb81b5851cbd5c2eb14424e"><td class="memItemLeft" valign="top">}&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a198e91c4adb81b5851cbd5c2eb14424e">returned</a></td></tr>
  144. <tr class="memdesc:a198e91c4adb81b5851cbd5c2eb14424e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returned from the connect when the MQTT version used to connect is 3.1.1. <br /></td></tr>
  145. <tr class="separator:a198e91c4adb81b5851cbd5c2eb14424e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:acfff5a62e87b80f205a1f83fdde5653d"><td class="memItemLeft" >struct {</td></tr>
  147. <tr class="memitem:ae6f8a64d616b1f3aaa57b9b389dfbdfb"><td class="memItemLeft" >
  148. &#160;&#160;&#160;int&#160;&#160;&#160;<a class="el" href="structMQTTClient__connectOptions.html#a3e0d107b093f17c9623f4d1b76d18db6">len</a></td></tr>
  149. <tr class="memdesc:ae6f8a64d616b1f3aaa57b9b389dfbdfb"><td class="mdescLeft">&#160;</td><td class="mdescRight">binary password length <br /></td></tr>
  150. <tr class="separator:ae6f8a64d616b1f3aaa57b9b389dfbdfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  151. <tr class="memitem:ac11e9a9b5036ce058da1d97fc4098ad9"><td class="memItemLeft" >
  152. &#160;&#160;&#160;const void *&#160;&#160;&#160;<a class="el" href="structMQTTClient__connectOptions.html#aaa44742ad0345bf7f3aea7628dea6bca">data</a></td></tr>
  153. <tr class="memdesc:ac11e9a9b5036ce058da1d97fc4098ad9"><td class="mdescLeft">&#160;</td><td class="mdescRight">binary password data <br /></td></tr>
  154. <tr class="separator:ac11e9a9b5036ce058da1d97fc4098ad9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:acfff5a62e87b80f205a1f83fdde5653d"><td class="memItemLeft" valign="top">}&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#acfff5a62e87b80f205a1f83fdde5653d">binarypwd</a></td></tr>
  156. <tr class="memdesc:acfff5a62e87b80f205a1f83fdde5653d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Optional binary password. <a href="structMQTTClient__connectOptions.html#acfff5a62e87b80f205a1f83fdde5653d">More...</a><br /></td></tr>
  157. <tr class="separator:acfff5a62e87b80f205a1f83fdde5653d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:a23eefc54da515a0c189ed6d5918470b0"><td class="memItemLeft" align="right" valign="top"><a id="a23eefc54da515a0c189ed6d5918470b0"></a>
  159. int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a23eefc54da515a0c189ed6d5918470b0">maxInflightMessages</a></td></tr>
  160. <tr class="memdesc:a23eefc54da515a0c189ed6d5918470b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">The maximum number of messages in flight. <br /></td></tr>
  161. <tr class="separator:a23eefc54da515a0c189ed6d5918470b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  162. <tr class="memitem:ab543120e553cb4e9598fc38c71c34044"><td class="memItemLeft" align="right" valign="top"><a id="ab543120e553cb4e9598fc38c71c34044"></a>
  163. int&#160;</td><td class="memItemRight" valign="bottom"><b>cleanstart</b></td></tr>
  164. <tr class="separator:ab543120e553cb4e9598fc38c71c34044"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:a843b077a0524dcc6a1ce6db12d2e7412"><td class="memItemLeft" align="right" valign="top"><a id="a843b077a0524dcc6a1ce6db12d2e7412"></a>
  166. const <a class="el" href="structMQTTClient__nameValue.html">MQTTClient_nameValue</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a843b077a0524dcc6a1ce6db12d2e7412">httpHeaders</a></td></tr>
  167. <tr class="memdesc:a843b077a0524dcc6a1ce6db12d2e7412"><td class="mdescLeft">&#160;</td><td class="mdescRight">HTTP headers for websockets. <br /></td></tr>
  168. <tr class="separator:a843b077a0524dcc6a1ce6db12d2e7412"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:a4c801d96d7a0013928d6a475fd48fe3c"><td class="memItemLeft" align="right" valign="top"><a id="a4c801d96d7a0013928d6a475fd48fe3c"></a>
  170. const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#a4c801d96d7a0013928d6a475fd48fe3c">httpProxy</a></td></tr>
  171. <tr class="memdesc:a4c801d96d7a0013928d6a475fd48fe3c"><td class="mdescLeft">&#160;</td><td class="mdescRight">HTTP proxy. <br /></td></tr>
  172. <tr class="separator:a4c801d96d7a0013928d6a475fd48fe3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  173. <tr class="memitem:aff577bef3a72e4aa9022fda4cffd4544"><td class="memItemLeft" align="right" valign="top"><a id="aff577bef3a72e4aa9022fda4cffd4544"></a>
  174. const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTClient__connectOptions.html#aff577bef3a72e4aa9022fda4cffd4544">httpsProxy</a></td></tr>
  175. <tr class="memdesc:aff577bef3a72e4aa9022fda4cffd4544"><td class="mdescLeft">&#160;</td><td class="mdescRight">HTTPS proxy. <br /></td></tr>
  176. <tr class="separator:aff577bef3a72e4aa9022fda4cffd4544"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. </table>
  178. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  179. <div class="textblock"><p><a class="el" href="structMQTTClient__connectOptions.html" title="MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT...">MQTTClient_connectOptions</a> defines several settings that control the way the client connects to an MQTT server. </p>
  180. <p><b>Note:</b> Default values are not defined for members of <a class="el" href="structMQTTClient__connectOptions.html" title="MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT...">MQTTClient_connectOptions</a> so it is good practice to specify all settings. If the <a class="el" href="structMQTTClient__connectOptions.html" title="MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT...">MQTTClient_connectOptions</a> structure is defined as an automatic variable, all members are set to random values and thus must be set by the client application. If the <a class="el" href="structMQTTClient__connectOptions.html" title="MQTTClient_connectOptions defines several settings that control the way the client connects to an MQT...">MQTTClient_connectOptions</a> structure is defined as a static variable, initialization (in compliant compilers) sets all values to 0 (NULL for pointers). A <a class="el" href="structMQTTClient__connectOptions.html#a7de757dd172a63d699290d582aa0f798" title="The &quot;keep alive&quot; interval, measured in seconds, defines the maximum time that should pass without com...">keepAliveInterval</a> setting of 0 prevents correct operation of the client and so you <b>must</b> at least set a value for <a class="el" href="structMQTTClient__connectOptions.html#a7de757dd172a63d699290d582aa0f798" title="The &quot;keep alive&quot; interval, measured in seconds, defines the maximum time that should pass without com...">keepAliveInterval</a>.</p>
  181. <p>Suitable default values are set in the following initializers:</p><ul>
  182. <li>MQTTClient_connectOptions_initializer: for MQTT 3.1.1 non-WebSockets</li>
  183. <li>MQTTClient_connectOptions_initializer5: for MQTT 5.0 non-WebSockets</li>
  184. <li>MQTTClient_connectOptions_initializer_ws: for MQTT 3.1.1 WebSockets</li>
  185. <li>MQTTClient_connectOptions_initializer5_ws: for MQTT 5.0 WebSockets </li>
  186. </ul>
  187. </div><h2 class="groupheader">Field Documentation</h2>
  188. <a id="acfff5a62e87b80f205a1f83fdde5653d"></a>
  189. <h2 class="memtitle"><span class="permalink"><a href="#acfff5a62e87b80f205a1f83fdde5653d">&#9670;&nbsp;</a></span>binarypwd</h2>
  190. <div class="memitem">
  191. <div class="memproto">
  192. <table class="memname">
  193. <tr>
  194. <td class="memname">struct { ... } MQTTClient_connectOptions::binarypwd</td>
  195. </tr>
  196. </table>
  197. </div><div class="memdoc">
  198. <p>Optional binary password. </p>
  199. <p>Only checked and used if the password option is NULL </p>
  200. </div>
  201. </div>
  202. <a id="a03a2cfaf17483f1b0aab2a70f3ef30d9"></a>
  203. <h2 class="memtitle"><span class="permalink"><a href="#a03a2cfaf17483f1b0aab2a70f3ef30d9">&#9670;&nbsp;</a></span>cleansession</h2>
  204. <div class="memitem">
  205. <div class="memproto">
  206. <table class="memname">
  207. <tr>
  208. <td class="memname">int MQTTClient_connectOptions::cleansession</td>
  209. </tr>
  210. </table>
  211. </div><div class="memdoc">
  212. <p>This is a boolean value. </p>
  213. <p>The cleansession setting controls the behaviour of both the client and the server at connection and disconnection time. The client and server both maintain session state information. This information is used to ensure "at least once" and "exactly once" delivery, and "exactly once" receipt of messages. Session state also includes subscriptions created by an MQTT client. You can choose to maintain or discard state information between sessions.</p>
  214. <p>When cleansession is true, the state information is discarded at connect and disconnect. Setting cleansession to false keeps the state information. When you connect an MQTT client application with <a class="el" href="MQTTClient_8c.html#aaa8ae61cd65c9dc0846df10122d7bd4e" title="This function attempts to connect a previously-created client (see MQTTClient_create()) to an MQTT se...">MQTTClient_connect()</a>, the client identifies the connection using the client identifier and the address of the server. The server checks whether session information for this client has been saved from a previous connection to the server. If a previous session still exists, and cleansession=true, then the previous session information at the client and server is cleared. If cleansession=false, the previous session is resumed. If no previous session exists, a new session is started. </p>
  215. </div>
  216. </div>
  217. <a id="a7de757dd172a63d699290d582aa0f798"></a>
  218. <h2 class="memtitle"><span class="permalink"><a href="#a7de757dd172a63d699290d582aa0f798">&#9670;&nbsp;</a></span>keepAliveInterval</h2>
  219. <div class="memitem">
  220. <div class="memproto">
  221. <table class="memname">
  222. <tr>
  223. <td class="memname">int MQTTClient_connectOptions::keepAliveInterval</td>
  224. </tr>
  225. </table>
  226. </div><div class="memdoc">
  227. <p>The "keep alive" interval, measured in seconds, defines the maximum time that should pass without communication between the client and the server The client will ensure that at least one message travels across the network within each keep alive period. </p>
  228. <p>In the absence of a data-related message during the time period, the client sends a very small MQTT "ping" message, which the server will acknowledge. The keep alive interval enables the client to detect when the server is no longer available without having to wait for the long TCP/IP timeout. </p>
  229. </div>
  230. </div>
  231. <a id="ac5990907e10165a71e6b3c163f2f1eef"></a>
  232. <h2 class="memtitle"><span class="permalink"><a href="#ac5990907e10165a71e6b3c163f2f1eef">&#9670;&nbsp;</a></span>MQTTVersion</h2>
  233. <div class="memitem">
  234. <div class="memproto">
  235. <table class="memname">
  236. <tr>
  237. <td class="memname">int MQTTClient_connectOptions::MQTTVersion</td>
  238. </tr>
  239. </table>
  240. </div><div class="memdoc">
  241. <p>Sets the version of MQTT to be used on the connect. </p>
  242. <p>the MQTT version used to connect with</p>
  243. <p>MQTTVERSION_DEFAULT (0) = default: start with 3.1.1, and if that fails, fall back to 3.1 MQTTVERSION_3_1 (3) = only try version 3.1 MQTTVERSION_3_1_1 (4) = only try version 3.1.1 MQTTVERSION_5 (5) = only try version 5.0 </p>
  244. </div>
  245. </div>
  246. <a id="a8f0e7e9e217a913fa8e200e2d5e45f6e"></a>
  247. <h2 class="memtitle"><span class="permalink"><a href="#a8f0e7e9e217a913fa8e200e2d5e45f6e">&#9670;&nbsp;</a></span>password</h2>
  248. <div class="memitem">
  249. <div class="memproto">
  250. <table class="memname">
  251. <tr>
  252. <td class="memname">const char* MQTTClient_connectOptions::password</td>
  253. </tr>
  254. </table>
  255. </div><div class="memdoc">
  256. <p>MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user name and password. </p>
  257. <p>This is the password parameter. </p>
  258. </div>
  259. </div>
  260. <a id="acd6367d7a402e7b668f8ec9760cd42c8"></a>
  261. <h2 class="memtitle"><span class="permalink"><a href="#acd6367d7a402e7b668f8ec9760cd42c8">&#9670;&nbsp;</a></span>reliable</h2>
  262. <div class="memitem">
  263. <div class="memproto">
  264. <table class="memname">
  265. <tr>
  266. <td class="memname">int MQTTClient_connectOptions::reliable</td>
  267. </tr>
  268. </table>
  269. </div><div class="memdoc">
  270. <p>This is a boolean value that controls how many messages can be in-flight simultaneously. </p>
  271. <p>Setting <em>reliable</em> to true means that a published message must be completed (acknowledgements received) before another can be sent. Attempts to publish additional messages receive an ::MQTTCLIENT_MAX_MESSAGES_INFLIGHT return code. Setting this flag to false allows up to 10 messages to be in-flight. This can increase overall throughput in some circumstances. </p>
  272. </div>
  273. </div>
  274. <a id="aabeb07cc7a2aa18fc1fb365503185c62"></a>
  275. <h2 class="memtitle"><span class="permalink"><a href="#aabeb07cc7a2aa18fc1fb365503185c62">&#9670;&nbsp;</a></span>retryInterval</h2>
  276. <div class="memitem">
  277. <div class="memproto">
  278. <table class="memname">
  279. <tr>
  280. <td class="memname">int MQTTClient_connectOptions::retryInterval</td>
  281. </tr>
  282. </table>
  283. </div><div class="memdoc">
  284. <p>The time interval in seconds after which unacknowledged publish requests are retried during a TCP session. </p>
  285. <p>With MQTT 3.1.1 and later, retries are not required except on reconnect. 0 turns off in-session retries, and is the recommended setting. Adding retries to an already overloaded network only exacerbates the problem. </p>
  286. </div>
  287. </div>
  288. <a id="a71667cbc2aa857db5b831a1e6a4a1ec9"></a>
  289. <h2 class="memtitle"><span class="permalink"><a href="#a71667cbc2aa857db5b831a1e6a4a1ec9">&#9670;&nbsp;</a></span>serverURIcount</h2>
  290. <div class="memitem">
  291. <div class="memproto">
  292. <table class="memname">
  293. <tr>
  294. <td class="memname">int MQTTClient_connectOptions::serverURIcount</td>
  295. </tr>
  296. </table>
  297. </div><div class="memdoc">
  298. <p>The number of entries in the optional serverURIs array. </p>
  299. <p>Defaults to 0. </p>
  300. </div>
  301. </div>
  302. <a id="aec63485af96db24d26868d3a19a83504"></a>
  303. <h2 class="memtitle"><span class="permalink"><a href="#aec63485af96db24d26868d3a19a83504">&#9670;&nbsp;</a></span>serverURIs</h2>
  304. <div class="memitem">
  305. <div class="memproto">
  306. <table class="memname">
  307. <tr>
  308. <td class="memname">char* const* MQTTClient_connectOptions::serverURIs</td>
  309. </tr>
  310. </table>
  311. </div><div class="memdoc">
  312. <p>An optional array of null-terminated strings specifying the servers to which the client will connect. </p>
  313. <p>Each string takes the form <em>protocol://host:port</em>. <em>protocol</em> must be <em>tcp</em>, <em>ssl</em>, <em>ws</em> or <em>wss</em>. The TLS enabled prefixes (ssl, wss) are only valid if a TLS version of the library is linked with. For <em>host</em>, you can specify either an IP address or a host name. For instance, to connect to a server running on the local machines with the default MQTT port, specify <em>tcp://localhost:1883</em>. If this list is empty (the default), the server URI specified on <a class="el" href="MQTTClient_8c.html#a9a0518d9ca924d12c1329dbe3de5f2b6" title="This function creates an MQTT client ready for connection to the specified server and using the speci...">MQTTClient_create()</a> is used. </p>
  314. </div>
  315. </div>
  316. <a id="a4e6be3b2292800db30c65dd66af85976"></a>
  317. <h2 class="memtitle"><span class="permalink"><a href="#a4e6be3b2292800db30c65dd66af85976">&#9670;&nbsp;</a></span>ssl</h2>
  318. <div class="memitem">
  319. <div class="memproto">
  320. <table class="memname">
  321. <tr>
  322. <td class="memname"><a class="el" href="structMQTTClient__SSLOptions.html">MQTTClient_SSLOptions</a>* MQTTClient_connectOptions::ssl</td>
  323. </tr>
  324. </table>
  325. </div><div class="memdoc">
  326. <p>This is a pointer to an <a class="el" href="structMQTTClient__SSLOptions.html" title="MQTTClient_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL li...">MQTTClient_SSLOptions</a> structure. </p>
  327. <p>If your application does not make use of SSL, set this pointer to NULL. </p>
  328. </div>
  329. </div>
  330. <a id="ab2e2302e3cc1105d6c93ae1e8205d60c"></a>
  331. <h2 class="memtitle"><span class="permalink"><a href="#ab2e2302e3cc1105d6c93ae1e8205d60c">&#9670;&nbsp;</a></span>struct_id</h2>
  332. <div class="memitem">
  333. <div class="memproto">
  334. <table class="memname">
  335. <tr>
  336. <td class="memname">char MQTTClient_connectOptions::struct_id[4]</td>
  337. </tr>
  338. </table>
  339. </div><div class="memdoc">
  340. <p>The eyecatcher for this structure. </p>
  341. <p>must be MQTC. </p>
  342. </div>
  343. </div>
  344. <a id="a0b07612dc569b59f7f937ff0c518a1bb"></a>
  345. <h2 class="memtitle"><span class="permalink"><a href="#a0b07612dc569b59f7f937ff0c518a1bb">&#9670;&nbsp;</a></span>struct_version</h2>
  346. <div class="memitem">
  347. <div class="memproto">
  348. <table class="memname">
  349. <tr>
  350. <td class="memname">int MQTTClient_connectOptions::struct_version</td>
  351. </tr>
  352. </table>
  353. </div><div class="memdoc">
  354. <p>The version number of this structure. </p>
  355. <p>Must be 0, 1, 2, 3, 4, 5, 6, 7 or 8. 0 signifies no SSL options and no serverURIs 1 signifies no serverURIs 2 signifies no MQTTVersion 3 signifies no returned values 4 signifies no binary password option 5 signifies no maxInflightMessages and cleanstart 6 signifies no HTTP headers option 7 signifies no HTTP proxy and HTTPS proxy options </p>
  356. </div>
  357. </div>
  358. <a id="a82e337534835601827defa911325299a"></a>
  359. <h2 class="memtitle"><span class="permalink"><a href="#a82e337534835601827defa911325299a">&#9670;&nbsp;</a></span>username</h2>
  360. <div class="memitem">
  361. <div class="memproto">
  362. <table class="memname">
  363. <tr>
  364. <td class="memname">const char* MQTTClient_connectOptions::username</td>
  365. </tr>
  366. </table>
  367. </div><div class="memdoc">
  368. <p>MQTT servers that support the MQTT v3.1.1 protocol provide authentication and authorisation by user name and password. </p>
  369. <p>This is the user name parameter. </p>
  370. </div>
  371. </div>
  372. <a id="a8d51a29a49d2a964d5079c9bae3fcffd"></a>
  373. <h2 class="memtitle"><span class="permalink"><a href="#a8d51a29a49d2a964d5079c9bae3fcffd">&#9670;&nbsp;</a></span>will</h2>
  374. <div class="memitem">
  375. <div class="memproto">
  376. <table class="memname">
  377. <tr>
  378. <td class="memname"><a class="el" href="structMQTTClient__willOptions.html">MQTTClient_willOptions</a>* MQTTClient_connectOptions::will</td>
  379. </tr>
  380. </table>
  381. </div><div class="memdoc">
  382. <p>This is a pointer to an <a class="el" href="structMQTTClient__willOptions.html" title="MQTTClient_willOptions defines the MQTT &quot;Last Will and Testament&quot; (LWT) settings for the client.">MQTTClient_willOptions</a> structure. </p>
  383. <p>If your application does not make use of the Last Will and Testament feature, set this pointer to NULL. </p>
  384. </div>
  385. </div>
  386. <hr/>The documentation for this struct was generated from the following file:<ul>
  387. <li>MQTTClient.h</li>
  388. </ul>
  389. </div><!-- contents -->
  390. <!-- start footer part -->
  391. <hr class="footer"/><address class="footer"><small>
  392. 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">
  393. <img class="footer" src="doxygen.png" alt="doxygen"/>
  394. </a> 1.8.17
  395. </small></address>
  396. </body>
  397. </html>