<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — Is there any reference about MQTT struct?]]></title>
		<link>https://www.wolfssl.com/forums/topic1595-is-there-any-reference-about-mqtt-struct.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1595.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Is there any reference about MQTT struct?.]]></description>
		<lastBuildDate>Tue, 01 Sep 2020 13:14:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Is there any reference about MQTT struct?]]></title>
			<link>https://www.wolfssl.com/forums/post5428.html#p5428</link>
			<description><![CDATA[<p>Hi JazP,</p><p>Yes, please open a support ticket.</p><p>Thanks,<br />Eric @ wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Tue, 01 Sep 2020 13:14:26 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5428.html#p5428</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is there any reference about MQTT struct?]]></title>
			<link>https://www.wolfssl.com/forums/post5427.html#p5427</link>
			<description><![CDATA[<p>Hi Eric, thanks for your reply. Yes, I&#039;m referring both examples Thingworks and wolfMQTT.<br />Actually, I haven&#039;t tried wolf mqtt example with no modification. <br />This is because the code is running on embedded platform but not arduino.</p><br /><p>Can... can I open a support ticket? I hesitate to post my not working code on this community.<br />I don&#039;t ask you doing a debug instead of me. I just want a comment if there is a mistake or lack of configuration.</p><p>If it will work as I expected, I will share my code on this forum.</p><br /><p>Best,<br />JazP</p>]]></description>
			<author><![CDATA[null@example.com (JazP)]]></author>
			<pubDate>Tue, 01 Sep 2020 11:53:22 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5427.html#p5427</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is there any reference about MQTT struct?]]></title>
			<link>https://www.wolfssl.com/forums/post5426.html#p5426</link>
			<description><![CDATA[<p>Hi JasP</p><p>We support all users of wolfSSL libraries! You can open a support ticket by emailing support@wolfssl.com anytime.</p><p>It looks like this is a good example of connecting an MQTT client to the ThingSpeak broker:<br /><a href="https://www.mathworks.com/help/thingspeak/mqtt-publish-and-subscribe-with-esp8266.html">https://www.mathworks.com/help/thingspe … p8266.html</a></p><p>From there we know the broker is &quot;mqtt.thingspeak.com&quot;; clientID is random; the username and password will come from your ThingSpeak account settings.</p><p>It does not appear to use a secure connection, so TLS can be disabled in the wolfMQTT configuration. This is likely the source of the MqttNet callback error you saw.</p><p>Are you building for an embedded platform? Have you tried running our existing examples?</p><p>Thanks,<br />Eric @ wolfSSL Support</p><p>Edit:<br />Here is an even better discussion of using an MQTT client with ThingSpeak:<br /><a href="https://www.mathworks.com/help/thingspeak/mqtt-basics.html">https://www.mathworks.com/help/thingspe … asics.html</a></p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Mon, 31 Aug 2020 21:37:09 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5426.html#p5426</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is there any reference about MQTT struct?]]></title>
			<link>https://www.wolfssl.com/forums/post5425.html#p5425</link>
			<description><![CDATA[<p>Hi Eric, I really appreciate your kind support. I could understand what is &#039;stat&#039; and &#039;ack&#039;.<br />In my application, I&#039;m using following structs.<br />- MqttClient<br />- MqttNet<br />- MqttConnect<br />- MqttPublish</p><p>In the case of &#039;MqttNet&#039;, a function returned an error with no specifying mqtt connect callback. I understood it was required.<br />If I understand correctly, MqttClient is handled by each Mqtt functions so we don&#039;t have to set any value.</p><p>I&#039;d like to understand which parameter should be set a value in my code. For example, &#039;MqttConnect.username&#039; is required(?) but &#039;MqttConnect.ack.stat&#039; is not?</p><p>As my personal project, I&#039;m trying to publish my data to Thingspeak. My application doesn&#039;t work well as I expected.<br /><a href="https://thingspeak.com/">https://thingspeak.com/</a></p><br /><p>I don&#039;t understand the support policy well but requesting a direct support via email is allowed?<br />Should I purchase any service? <br />My code is on Github so I can share it with you. Any feedback to my code is really helpful.</p><p>Thanks,<br />JasP</p>]]></description>
			<author><![CDATA[null@example.com (JazP)]]></author>
			<pubDate>Sat, 29 Aug 2020 07:25:30 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5425.html#p5425</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is there any reference about MQTT struct?]]></title>
			<link>https://www.wolfssl.com/forums/post5424.html#p5424</link>
			<description><![CDATA[<p>Hello @JazP</p><p>Thanks for contacting wolfSSL Support. The `stat` structure element is used internally by the command API. It preserves the current state of the command processing. This functionality is used by the non-blocking configuration option, when the API could return `MQTT_CODE_CONTINUE` to indicate an incomplete command.</p><p>If you are reusing the structure for a subsequent call (for example calling publish twice in a row with the same structure), you would need to reset the stat to 0 (MQTT_MSG_BEGIN).</p><p>Could you tell us a bit more about your use case? Feel free to contact us at support@wolfssl.com </p><p>Thanks,<br />Eric</p><p>Edit to add info about the &quot;ack&quot; - The ack packet is a response from the broker to indicate the status of the requested command.</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Fri, 28 Aug 2020 15:47:13 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5424.html#p5424</guid>
		</item>
		<item>
			<title><![CDATA[Is there any reference about MQTT struct?]]></title>
			<link>https://www.wolfssl.com/forums/post5423.html#p5423</link>
			<description><![CDATA[<p>Hi, I really appreciate providing such helpful libraries. <br />I have already read MQTT user manual but couldn&#039;t find what I was looking for.</p><p>I&#039;d like to know what does each struct parameter stand for. For example, struct &quot;MqttConnect&quot; has many parameters.<br />I have less knowledge about MQTT but I could understand what is &quot;MqttConnect.keep_alive_sec&quot;.<br />But I couldn&#039;t understand what is &quot;MqttConnect.stat&quot;.</p><p>Of course I dug into source code and found a hint in &quot;mqtt_packet.h&quot; as below.</p><div class="codebox"><pre><code>typedef enum _MqttMsgStat {
    MQTT_MSG_BEGIN = 0, /* must be zero, so memset will setup state */
#ifdef WOLFMQTT_V5
    MQTT_MSG_AUTH,
#endif
    MQTT_MSG_WAIT,
    MQTT_MSG_WRITE,
    MQTT_MSG_WRITE_PAYLOAD,
    MQTT_MSG_READ,
    MQTT_MSG_READ_PAYLOAD,
} MqttMsgStat;</code></pre></div><p>Well... what is &quot;MqttMsgStat&quot;...? I just would like to publish a message to broker but... which one should I select?</p><p>Not only this parameter, I couldn&#039;t understand &quot;ack.flags&quot;, &quot;ack.return_code&quot; and so on.<br />It might be a basic of MQTT but it would be helpful there is a reference. Do you have any idea or resource?</p>]]></description>
			<author><![CDATA[null@example.com (JazP)]]></author>
			<pubDate>Fri, 28 Aug 2020 15:09:36 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post5423.html#p5423</guid>
		</item>
	</channel>
</rss>
