structMQTTAsync__responseOptions.html 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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: MQTTAsync_responseOptions 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">MQTTAsync_responseOptions Struct Reference</div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <p>Structure to define call options.
  70. <a href="structMQTTAsync__responseOptions.html#details">More...</a></p>
  71. <p><code>#include &lt;MQTTAsync.h&gt;</code></p>
  72. <div class="dynheader">
  73. Collaboration diagram for MQTTAsync_responseOptions:</div>
  74. <div class="dyncontent">
  75. <div class="center"><img src="structMQTTAsync__responseOptions__coll__graph.png" border="0" usemap="#MQTTAsync__responseOptions_coll__map" alt="Collaboration graph"/></div>
  76. <map name="MQTTAsync__responseOptions_coll__map" id="MQTTAsync__responseOptions_coll__map">
  77. <area shape="rect" title="Structure to define call options." alt="" coords="69,303,269,329"/>
  78. <area shape="rect" href="structMQTTSubscribe__options.html" title="The MQTT V5 subscribe options, apart from QoS which existed before V5." alt="" coords="5,199,172,225"/>
  79. <area shape="rect" href="structMQTTProperties.html" title="MQTT version 5 property list." alt="" coords="196,199,315,225"/>
  80. <area shape="rect" href="structMQTTProperty.html" title="Structure to hold an MQTT version 5 property of any type." alt="" coords="202,109,309,136"/>
  81. <area shape="rect" href="structMQTTLenString.html" title="The data for a length delimited string." alt="" coords="198,5,313,32"/>
  82. </map>
  83. <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
  84. <table class="memberdecls">
  85. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
  86. Data Fields</h2></td></tr>
  87. <tr class="memitem:a4b82d5aca6f990de991c87c34f8a7d02"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#a4b82d5aca6f990de991c87c34f8a7d02">struct_id</a> [4]</td></tr>
  88. <tr class="memdesc:a4b82d5aca6f990de991c87c34f8a7d02"><td class="mdescLeft">&#160;</td><td class="mdescRight">The eyecatcher for this structure. <a href="structMQTTAsync__responseOptions.html#a4b82d5aca6f990de991c87c34f8a7d02">More...</a><br /></td></tr>
  89. <tr class="separator:a4b82d5aca6f990de991c87c34f8a7d02"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:aabf57368b8266f17e7951579897f7f66"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#aabf57368b8266f17e7951579897f7f66">struct_version</a></td></tr>
  91. <tr class="memdesc:aabf57368b8266f17e7951579897f7f66"><td class="mdescLeft">&#160;</td><td class="mdescRight">The version number of this structure. <a href="structMQTTAsync__responseOptions.html#aabf57368b8266f17e7951579897f7f66">More...</a><br /></td></tr>
  92. <tr class="separator:aabf57368b8266f17e7951579897f7f66"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:a4a6dffebf9a6f4ffb9fe2a5d949d8090"><td class="memItemLeft" align="right" valign="top">MQTTAsync_onSuccess *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#a4a6dffebf9a6f4ffb9fe2a5d949d8090">onSuccess</a></td></tr>
  94. <tr class="memdesc:a4a6dffebf9a6f4ffb9fe2a5d949d8090"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to a callback function to be called if the API call successfully completes. <a href="structMQTTAsync__responseOptions.html#a4a6dffebf9a6f4ffb9fe2a5d949d8090">More...</a><br /></td></tr>
  95. <tr class="separator:a4a6dffebf9a6f4ffb9fe2a5d949d8090"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:a180b2c728942d606a3fc4a4a79bb81f4"><td class="memItemLeft" align="right" valign="top">MQTTAsync_onFailure *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#a180b2c728942d606a3fc4a4a79bb81f4">onFailure</a></td></tr>
  97. <tr class="memdesc:a180b2c728942d606a3fc4a4a79bb81f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to a callback function to be called if the API call fails. <a href="structMQTTAsync__responseOptions.html#a180b2c728942d606a3fc4a4a79bb81f4">More...</a><br /></td></tr>
  98. <tr class="separator:a180b2c728942d606a3fc4a4a79bb81f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:a1d39a3f47712791b00ec7faab14c839a"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#a1d39a3f47712791b00ec7faab14c839a">context</a></td></tr>
  100. <tr class="memdesc:a1d39a3f47712791b00ec7faab14c839a"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to any application-specific context. <a href="structMQTTAsync__responseOptions.html#a1d39a3f47712791b00ec7faab14c839a">More...</a><br /></td></tr>
  101. <tr class="separator:a1d39a3f47712791b00ec7faab14c839a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:aaf6926989620579f2590cdaf1ff16bfe"><td class="memItemLeft" align="right" valign="top">MQTTAsync_token&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#aaf6926989620579f2590cdaf1ff16bfe">token</a></td></tr>
  103. <tr class="memdesc:aaf6926989620579f2590cdaf1ff16bfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">A token is returned from the call. <a href="structMQTTAsync__responseOptions.html#aaf6926989620579f2590cdaf1ff16bfe">More...</a><br /></td></tr>
  104. <tr class="separator:aaf6926989620579f2590cdaf1ff16bfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a1294e96bc2d81fca8808fdca3bf4dd2e"><td class="memItemLeft" align="right" valign="top">MQTTAsync_onSuccess5 *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#a1294e96bc2d81fca8808fdca3bf4dd2e">onSuccess5</a></td></tr>
  106. <tr class="memdesc:a1294e96bc2d81fca8808fdca3bf4dd2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to a callback function to be called if the API call successfully completes. <a href="structMQTTAsync__responseOptions.html#a1294e96bc2d81fca8808fdca3bf4dd2e">More...</a><br /></td></tr>
  107. <tr class="separator:a1294e96bc2d81fca8808fdca3bf4dd2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:a134555eea729d1eeeb9427057834fa38"><td class="memItemLeft" align="right" valign="top">MQTTAsync_onFailure5 *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#a134555eea729d1eeeb9427057834fa38">onFailure5</a></td></tr>
  109. <tr class="memdesc:a134555eea729d1eeeb9427057834fa38"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to a callback function to be called if the API call successfully completes. <a href="structMQTTAsync__responseOptions.html#a134555eea729d1eeeb9427057834fa38">More...</a><br /></td></tr>
  110. <tr class="separator:a134555eea729d1eeeb9427057834fa38"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:abc19c474b6908b2bcbd42f8410d46336"><td class="memItemLeft" align="right" valign="top"><a id="abc19c474b6908b2bcbd42f8410d46336"></a>
  112. <a class="el" href="structMQTTProperties.html">MQTTProperties</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMQTTAsync__responseOptions.html#abc19c474b6908b2bcbd42f8410d46336">properties</a></td></tr>
  113. <tr class="memdesc:abc19c474b6908b2bcbd42f8410d46336"><td class="mdescLeft">&#160;</td><td class="mdescRight">MQTT V5 input properties. <br /></td></tr>
  114. <tr class="separator:abc19c474b6908b2bcbd42f8410d46336"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:a3b89f7a903c7af8964dba42f369921b9"><td class="memItemLeft" align="right" valign="top"><a id="a3b89f7a903c7af8964dba42f369921b9"></a>
  116. <a class="el" href="structMQTTSubscribe__options.html">MQTTSubscribe_options</a>&#160;</td><td class="memItemRight" valign="bottom"><b>subscribeOptions</b></td></tr>
  117. <tr class="separator:a3b89f7a903c7af8964dba42f369921b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  118. <tr class="memitem:a6cfc0087f4fc15e03535c50d2ca76e5f"><td class="memItemLeft" align="right" valign="top"><a id="a6cfc0087f4fc15e03535c50d2ca76e5f"></a>
  119. int&#160;</td><td class="memItemRight" valign="bottom"><b>subscribeOptionsCount</b></td></tr>
  120. <tr class="separator:a6cfc0087f4fc15e03535c50d2ca76e5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:abead6862276fa0ab2cc826165e0b2b8d"><td class="memItemLeft" align="right" valign="top"><a id="abead6862276fa0ab2cc826165e0b2b8d"></a>
  122. <a class="el" href="structMQTTSubscribe__options.html">MQTTSubscribe_options</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>subscribeOptionsList</b></td></tr>
  123. <tr class="separator:abead6862276fa0ab2cc826165e0b2b8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  124. </table>
  125. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  126. <div class="textblock"><p>Structure to define call options. </p>
  127. <p>For MQTT 5.0 there is input data as well as that describing the response method. So there is now also a synonym ::MQTTAsync_callOptions to better reflect the use. This responseOptions name is kept for backward compatibility. </p>
  128. </div><h2 class="groupheader">Field Documentation</h2>
  129. <a id="a1d39a3f47712791b00ec7faab14c839a"></a>
  130. <h2 class="memtitle"><span class="permalink"><a href="#a1d39a3f47712791b00ec7faab14c839a">&#9670;&nbsp;</a></span>context</h2>
  131. <div class="memitem">
  132. <div class="memproto">
  133. <table class="memname">
  134. <tr>
  135. <td class="memname">void* MQTTAsync_responseOptions::context</td>
  136. </tr>
  137. </table>
  138. </div><div class="memdoc">
  139. <p>A pointer to any application-specific context. </p>
  140. <p>The the <em>context</em> pointer is passed to success or failure callback functions to provide access to the context information in the callback. </p>
  141. </div>
  142. </div>
  143. <a id="a180b2c728942d606a3fc4a4a79bb81f4"></a>
  144. <h2 class="memtitle"><span class="permalink"><a href="#a180b2c728942d606a3fc4a4a79bb81f4">&#9670;&nbsp;</a></span>onFailure</h2>
  145. <div class="memitem">
  146. <div class="memproto">
  147. <table class="memname">
  148. <tr>
  149. <td class="memname">MQTTAsync_onFailure* MQTTAsync_responseOptions::onFailure</td>
  150. </tr>
  151. </table>
  152. </div><div class="memdoc">
  153. <p>A pointer to a callback function to be called if the API call fails. </p>
  154. <p>Can be set to NULL, in which case no indication of unsuccessful completion will be received. </p>
  155. </div>
  156. </div>
  157. <a id="a134555eea729d1eeeb9427057834fa38"></a>
  158. <h2 class="memtitle"><span class="permalink"><a href="#a134555eea729d1eeeb9427057834fa38">&#9670;&nbsp;</a></span>onFailure5</h2>
  159. <div class="memitem">
  160. <div class="memproto">
  161. <table class="memname">
  162. <tr>
  163. <td class="memname">MQTTAsync_onFailure5* MQTTAsync_responseOptions::onFailure5</td>
  164. </tr>
  165. </table>
  166. </div><div class="memdoc">
  167. <p>A pointer to a callback function to be called if the API call successfully completes. </p>
  168. <p>Can be set to NULL, in which case no indication of successful completion will be received. </p>
  169. </div>
  170. </div>
  171. <a id="a4a6dffebf9a6f4ffb9fe2a5d949d8090"></a>
  172. <h2 class="memtitle"><span class="permalink"><a href="#a4a6dffebf9a6f4ffb9fe2a5d949d8090">&#9670;&nbsp;</a></span>onSuccess</h2>
  173. <div class="memitem">
  174. <div class="memproto">
  175. <table class="memname">
  176. <tr>
  177. <td class="memname">MQTTAsync_onSuccess* MQTTAsync_responseOptions::onSuccess</td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>A pointer to a callback function to be called if the API call successfully completes. </p>
  182. <p>Can be set to NULL, in which case no indication of successful completion will be received. </p>
  183. </div>
  184. </div>
  185. <a id="a1294e96bc2d81fca8808fdca3bf4dd2e"></a>
  186. <h2 class="memtitle"><span class="permalink"><a href="#a1294e96bc2d81fca8808fdca3bf4dd2e">&#9670;&nbsp;</a></span>onSuccess5</h2>
  187. <div class="memitem">
  188. <div class="memproto">
  189. <table class="memname">
  190. <tr>
  191. <td class="memname">MQTTAsync_onSuccess5* MQTTAsync_responseOptions::onSuccess5</td>
  192. </tr>
  193. </table>
  194. </div><div class="memdoc">
  195. <p>A pointer to a callback function to be called if the API call successfully completes. </p>
  196. <p>Can be set to NULL, in which case no indication of successful completion will be received. </p>
  197. </div>
  198. </div>
  199. <a id="a4b82d5aca6f990de991c87c34f8a7d02"></a>
  200. <h2 class="memtitle"><span class="permalink"><a href="#a4b82d5aca6f990de991c87c34f8a7d02">&#9670;&nbsp;</a></span>struct_id</h2>
  201. <div class="memitem">
  202. <div class="memproto">
  203. <table class="memname">
  204. <tr>
  205. <td class="memname">char MQTTAsync_responseOptions::struct_id[4]</td>
  206. </tr>
  207. </table>
  208. </div><div class="memdoc">
  209. <p>The eyecatcher for this structure. </p>
  210. <p>Must be MQTR </p>
  211. </div>
  212. </div>
  213. <a id="aabf57368b8266f17e7951579897f7f66"></a>
  214. <h2 class="memtitle"><span class="permalink"><a href="#aabf57368b8266f17e7951579897f7f66">&#9670;&nbsp;</a></span>struct_version</h2>
  215. <div class="memitem">
  216. <div class="memproto">
  217. <table class="memname">
  218. <tr>
  219. <td class="memname">int MQTTAsync_responseOptions::struct_version</td>
  220. </tr>
  221. </table>
  222. </div><div class="memdoc">
  223. <p>The version number of this structure. </p>
  224. <p>Must be 0 or 1 if 0, no MQTTV5 options </p>
  225. </div>
  226. </div>
  227. <a id="aaf6926989620579f2590cdaf1ff16bfe"></a>
  228. <h2 class="memtitle"><span class="permalink"><a href="#aaf6926989620579f2590cdaf1ff16bfe">&#9670;&nbsp;</a></span>token</h2>
  229. <div class="memitem">
  230. <div class="memproto">
  231. <table class="memname">
  232. <tr>
  233. <td class="memname">MQTTAsync_token MQTTAsync_responseOptions::token</td>
  234. </tr>
  235. </table>
  236. </div><div class="memdoc">
  237. <p>A token is returned from the call. </p>
  238. <p>It can be used to track the state of this request, both in the callbacks and in future calls such as ::MQTTAsync_waitForCompletion. This is output only - any change by the application will be ignored. </p>
  239. </div>
  240. </div>
  241. <hr/>The documentation for this struct was generated from the following file:<ul>
  242. <li>MQTTAsync.h</li>
  243. </ul>
  244. </div><!-- contents -->
  245. <!-- start footer part -->
  246. <hr class="footer"/><address class="footer"><small>
  247. 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">
  248. <img class="footer" src="doxygen.png" alt="doxygen"/>
  249. </a> 1.8.17
  250. </small></address>
  251. </body>
  252. </html>