<?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 — Possible error on example on website]]></title>
		<link>https://www.wolfssl.com/forums/topic1338-possible-error-on-example-on-website.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1338.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Possible error on example on website.]]></description>
		<lastBuildDate>Fri, 10 May 2019 21:00:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Possible error on example on website]]></title>
			<link>https://www.wolfssl.com/forums/post4597.html#p4597</link>
			<description><![CDATA[<p>@edx,</p><p>Thank you so much for pointing this out. The documentation was accurate at the time it was produced but a subsequent refactor of the MQTT code caused the two to become out of sync. We will get an update to the documentation on the next update.</p><p>Warm Regards,</p><p>K</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Fri, 10 May 2019 21:00:39 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4597.html#p4597</guid>
		</item>
		<item>
			<title><![CDATA[Possible error on example on website]]></title>
			<link>https://www.wolfssl.com/forums/post4506.html#p4506</link>
			<description><![CDATA[<p>Hi there, as the title says i think there&#039;s a error on the webpage, maybe somebody else already noticed it or perhaps i&#039;m wrong, but anyway here we go:</p><p>The URL is this: <a href="https://www.wolfssl.com/docs/wolfmqtt-manual/#h.pszdkq94ege">https://www.wolfssl.com/docs/wolfmqtt-m … szdkq94ege</a><br />The wrong example is 5.9 MQTTCLIENT_WAITMESSAGE<br />Screenshot:&nbsp; attachment #1</p><p>According to the example on the webpage the MqttClient_WaitMessage should be used this way:<br /></p><div class="codebox"><pre><code>rc = MqttClient_WaitMessage(&amp;client, &amp;msg, DEFAULT_CMD_TIMEOUT_MS);</code></pre></div><p>But if you take a look at the source code (wolfmqtt-1.2.0), the function just needs two parameters, the client and the timeout.</p><div class="codebox"><pre><code>int MqttClient_WaitMessage(MqttClient *client, int timeout_ms)
{
    return MqttClient_WaitType(client, &amp;client-&gt;msg, timeout_ms,
        MQTT_PACKET_TYPE_ANY, 0, NULL);
}</code></pre></div><p>So if you tried the example there&#039;ll be a warning because the second pointer (&amp;msg)</p><p>Thanks for you time <img src="https://www.wolfssl.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />======================================================<br /><a href="http://www.edx-twin3.org">http://www.edx-twin3.org</a></p>]]></description>
			<author><![CDATA[null@example.com (edx)]]></author>
			<pubDate>Sat, 30 Mar 2019 04:20:01 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4506.html#p4506</guid>
		</item>
	</channel>
</rss>
