<?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 — Problem to receive and publish messages in different tasks]]></title>
		<link>https://www.wolfssl.com/forums/topic2022-problem-to-receive-and-publish-messages-in-different-tasks.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2022.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Problem to receive and publish messages in different tasks.]]></description>
		<lastBuildDate>Thu, 06 Jul 2023 13:18:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Problem to receive and publish messages in different tasks]]></title>
			<link>https://www.wolfssl.com/forums/post7183.html#p7183</link>
			<description><![CDATA[<p>Hi sricor,</p><p>I have responded to your ticket in our Zendesk portal. Thanks for sending that in.</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Thu, 06 Jul 2023 13:18:01 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7183.html#p7183</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem to receive and publish messages in different tasks]]></title>
			<link>https://www.wolfssl.com/forums/post7182.html#p7182</link>
			<description><![CDATA[<p>Thank you for reply. I understand that the MQTT_CODE_CONTINUE means that the driver doesn&#039;t complete the request. That is why I have the while loop. I rely that on exit from that loop the buffer is done.</p><p>I also forgot to mention that I use the wolfMQTT library v1.7.1 that comes from Mictochip HARMONY 3 framework for SAMv71.</p>]]></description>
			<author><![CDATA[null@example.com (sricor)]]></author>
			<pubDate>Thu, 06 Jul 2023 10:11:10 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7182.html#p7182</guid>
		</item>
		<item>
			<title><![CDATA[Re: Problem to receive and publish messages in different tasks]]></title>
			<link>https://www.wolfssl.com/forums/post7181.html#p7181</link>
			<description><![CDATA[<p>Hello sricor,</p><p>Welcome to the wolfSSL Forums. This sounds like a very interesting project. If the return code is MQTT_CODE_CONTINUE, then the IO driver is returning EINPROGRESS or EWOULDBLOCK, indicating that the driver buffer is not being emptied. I&#039;d like to try to reproduce this. Could you please send an email to support@wolfssl.com mentioning this forum post?</p><p>Thanks,<br />Eric - wolfSSL Support</p>]]></description>
			<author><![CDATA[null@example.com (embhorn)]]></author>
			<pubDate>Wed, 05 Jul 2023 14:37:44 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7181.html#p7181</guid>
		</item>
		<item>
			<title><![CDATA[Problem to receive and publish messages in different tasks]]></title>
			<link>https://www.wolfssl.com/forums/post7180.html#p7180</link>
			<description><![CDATA[<p>I have problem writing multitask MQTT client for Microchip SAMV71 microprocessor using the wolfMQTT library. <br />The client receives the messages by calling the MqttClient_WaitMessage() in one task and publishes the responces using MqttClient_Publish() in another task. <br />As a result the sending and publishing is done simultaneously. The library is used in non-blocking mode (WOLFMQTT_NONBLOCK).</p><p>The code looks like that:<br />Receiving task:<br />while(MQTT_CODE_CONTINUE == !MqttClient_WaitMessage(&amp;client, 100 /*ms*/));</p><p>Publishing task (publish structure and buffers are in static area, qos is MQTT_QOS_1 or MQTT_QOS_2):<br />while(MQTT_CODE_CONTINUE == MqttClient_Publish(&amp;client, &amp;publish));</p><p> The client crashes after few hundred messages transferred in both direction. The question is what can I do to make the sending and publishing working.</p><p>One thing I found that at some point the MqttClient_Publish() function never return the success, only MQTT_CODE_CONTINUE. It looks like it starts to read MQTT acknowledge, as part of QOS1/2 handling. The ACK packages arrives but the MqttClient_Publish() function fails to read them from socket. For me it looks like the MqttClient_WaitMessage() and MqttClient_Publish() are conflicting, because both share the same control structure: &quot;clientpacket&quot; in MqttClient_WaitType().</p>]]></description>
			<author><![CDATA[null@example.com (sricor)]]></author>
			<pubDate>Wed, 05 Jul 2023 14:22:11 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7180.html#p7180</guid>
		</item>
	</channel>
</rss>
