structMQTTSubscribe__options.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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: MQTTSubscribe_options 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">MQTTSubscribe_options Struct Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p>The MQTT V5 subscribe options, apart from QoS which existed before V5.
  70. <a href="structMQTTSubscribe__options.html#details">More...</a></p>
  71. <p><code>#include &lt;MQTTSubscribeOpts.h&gt;</code></p>
  72. <table class="memberdecls">
  73. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  74. Data Fields</h2></td></tr>
  75. <tr class="memitem:a2fe9d45e9ee31af976a232584d5a2409"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTSubscribe__options.html#a2fe9d45e9ee31af976a232584d5a2409">struct_id</a> [4]</td></tr>
  76. <tr class="memdesc:a2fe9d45e9ee31af976a232584d5a2409"><td class="mdescLeft">&#160;</td><td class="mdescRight">The eyecatcher for this structure. <a href="structMQTTSubscribe__options.html#a2fe9d45e9ee31af976a232584d5a2409">More...</a><br /></td></tr>
  77. <tr class="separator:a2fe9d45e9ee31af976a232584d5a2409"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:aed5f22c185be62363ac36df1d3778c6d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTSubscribe__options.html#aed5f22c185be62363ac36df1d3778c6d">struct_version</a></td></tr>
  79. <tr class="memdesc:aed5f22c185be62363ac36df1d3778c6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The version number of this structure. <a href="structMQTTSubscribe__options.html#aed5f22c185be62363ac36df1d3778c6d">More...</a><br /></td></tr>
  80. <tr class="separator:aed5f22c185be62363ac36df1d3778c6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:a52989a1198bc251aad22638e85f2b7b4"><td class="memItemLeft" align="right" valign="top">unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTSubscribe__options.html#a52989a1198bc251aad22638e85f2b7b4">noLocal</a></td></tr>
  82. <tr class="memdesc:a52989a1198bc251aad22638e85f2b7b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">To not receive our own publications, set to 1. <a href="structMQTTSubscribe__options.html#a52989a1198bc251aad22638e85f2b7b4">More...</a><br /></td></tr>
  83. <tr class="separator:a52989a1198bc251aad22638e85f2b7b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:a9c66f0773c0484dde0e582b4c47d9bf7"><td class="memItemLeft" align="right" valign="top">unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTSubscribe__options.html#a9c66f0773c0484dde0e582b4c47d9bf7">retainAsPublished</a></td></tr>
  85. <tr class="memdesc:a9c66f0773c0484dde0e582b4c47d9bf7"><td class="mdescLeft">&#160;</td><td class="mdescRight">To keep the retain flag as on the original publish message, set to 1. <a href="structMQTTSubscribe__options.html#a9c66f0773c0484dde0e582b4c47d9bf7">More...</a><br /></td></tr>
  86. <tr class="separator:a9c66f0773c0484dde0e582b4c47d9bf7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a8375543f39c16e32698226db118076e6"><td class="memItemLeft" align="right" valign="top"><a id="a8375543f39c16e32698226db118076e6"></a>
  88. unsigned char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTSubscribe__options.html#a8375543f39c16e32698226db118076e6">retainHandling</a></td></tr>
  89. <tr class="memdesc:a8375543f39c16e32698226db118076e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">0 - send retained messages at the time of the subscribe (original MQTT behaviour) 1 - send retained messages on subscribe only if the subscription is new 2 - do not send retained messages at all <br /></td></tr>
  90. <tr class="separator:a8375543f39c16e32698226db118076e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. </table>
  92. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  93. <div class="textblock"><p>The MQTT V5 subscribe options, apart from QoS which existed before V5. </p>
  94. </div><h2 class="groupheader">Field Documentation</h2>
  95. <a id="a52989a1198bc251aad22638e85f2b7b4"></a>
  96. <h2 class="memtitle"><span class="permalink"><a href="#a52989a1198bc251aad22638e85f2b7b4">&#9670;&nbsp;</a></span>noLocal</h2>
  97. <div class="memitem">
  98. <div class="memproto">
  99. <table class="memname">
  100. <tr>
  101. <td class="memname">unsigned char MQTTSubscribe_options::noLocal</td>
  102. </tr>
  103. </table>
  104. </div><div class="memdoc">
  105. <p>To not receive our own publications, set to 1. </p>
  106. <p>0 is the original MQTT behaviour - all messages matching the subscription are received. </p>
  107. </div>
  108. </div>
  109. <a id="a9c66f0773c0484dde0e582b4c47d9bf7"></a>
  110. <h2 class="memtitle"><span class="permalink"><a href="#a9c66f0773c0484dde0e582b4c47d9bf7">&#9670;&nbsp;</a></span>retainAsPublished</h2>
  111. <div class="memitem">
  112. <div class="memproto">
  113. <table class="memname">
  114. <tr>
  115. <td class="memname">unsigned char MQTTSubscribe_options::retainAsPublished</td>
  116. </tr>
  117. </table>
  118. </div><div class="memdoc">
  119. <p>To keep the retain flag as on the original publish message, set to 1. </p>
  120. <p>If 0, defaults to the original MQTT behaviour where the retain flag is only set on publications sent by a broker if in response to a subscribe request. </p>
  121. </div>
  122. </div>
  123. <a id="a2fe9d45e9ee31af976a232584d5a2409"></a>
  124. <h2 class="memtitle"><span class="permalink"><a href="#a2fe9d45e9ee31af976a232584d5a2409">&#9670;&nbsp;</a></span>struct_id</h2>
  125. <div class="memitem">
  126. <div class="memproto">
  127. <table class="memname">
  128. <tr>
  129. <td class="memname">char MQTTSubscribe_options::struct_id[4]</td>
  130. </tr>
  131. </table>
  132. </div><div class="memdoc">
  133. <p>The eyecatcher for this structure. </p>
  134. <p>Must be MQSO. </p>
  135. </div>
  136. </div>
  137. <a id="aed5f22c185be62363ac36df1d3778c6d"></a>
  138. <h2 class="memtitle"><span class="permalink"><a href="#aed5f22c185be62363ac36df1d3778c6d">&#9670;&nbsp;</a></span>struct_version</h2>
  139. <div class="memitem">
  140. <div class="memproto">
  141. <table class="memname">
  142. <tr>
  143. <td class="memname">int MQTTSubscribe_options::struct_version</td>
  144. </tr>
  145. </table>
  146. </div><div class="memdoc">
  147. <p>The version number of this structure. </p>
  148. <p>Must be 0. </p>
  149. </div>
  150. </div>
  151. <hr/>The documentation for this struct was generated from the following file:<ul>
  152. <li>MQTTSubscribeOpts.h</li>
  153. </ul>
  154. </div><!-- contents -->
  155. <!-- start footer part -->
  156. <hr class="footer"/><address class="footer"><small>
  157. 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">
  158. <img class="footer" src="doxygen.png" alt="doxygen"/>
  159. </a> 1.8.17
  160. </small></address>
  161. </body>
  162. </html>