<?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 — Trying to Use MQTT with Microchip Harmony 1.06]]></title>
		<link>https://www.wolfssl.com/forums/topic2357-trying-to-use-mqtt-with-microchip-harmony-106.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic2357.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Trying to Use MQTT with Microchip Harmony 1.06.]]></description>
		<lastBuildDate>Thu, 14 Aug 2025 16:07:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Trying to Use MQTT with Microchip Harmony 1.06]]></title>
			<link>https://www.wolfssl.com/forums/post8476.html#p8476</link>
			<description><![CDATA[<p>The Issue appears the The Reconnect sequence needs the Init Function to be called<br />MqttClientNet_Init()<br />MqttClient_Init()<br />MqttClient_NetConnect()<br />MqttClient_Connect()</p><p>Apparently MqttClient_NetDisconnect() does not clean up properly.&nbsp; I assume Later versions fix this.<br />I will check for memory leaks.</p><p>V1.0.0 and 1.1.0 only works sometime.&nbsp; It looks like there are some API changes between MQTT and SSL.</p>]]></description>
			<author><![CDATA[null@example.com (Neil.Kurzman)]]></author>
			<pubDate>Thu, 14 Aug 2025 16:07:07 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8476.html#p8476</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to Use MQTT with Microchip Harmony 1.06]]></title>
			<link>https://www.wolfssl.com/forums/post8471.html#p8471</link>
			<description><![CDATA[<p>What I was look for is a new connection.&nbsp; Ie I pull the Network cable.<br />I would Expect: <br />MqttClient_Disconnect()<br />MqttClient_NetDisconnect();<br />followed by:<br />MqttClient_NetConnect()<br />MqttClient_Connect()<br />This Does Not Work and causes an exception<br />I would Assume this is fixed in later versions.</p><p>Reconnecting with the existing resources would be optimal<br />ie<br />rc = client-&gt;net-&gt;connect(client-&gt;net-&gt;context, AZURE_HOST, MQTT_TLS_PORT, DEFAULT_CON_TIMEOUT_MS);<br />rc = wolfSSL_connect(client-&gt;tls.ssl);<br />DO I need more than this to reconnect the Connection to the server?<br />then for <br />MQTT<br />Can I just call MqttClient_Connect() again?</p>]]></description>
			<author><![CDATA[null@example.com (Neil.Kurzman)]]></author>
			<pubDate>Sat, 09 Aug 2025 06:13:51 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8471.html#p8471</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to Use MQTT with Microchip Harmony 1.06]]></title>
			<link>https://www.wolfssl.com/forums/post8469.html#p8469</link>
			<description><![CDATA[<p>Change from Harmony 1 to 3 is a major rewrite.&nbsp; I will Check with Microchip.<br />To me, for embedded use, the Stack is better.&nbsp; The Heap can get fragmented.</p><p>Right now the Connection to Azure is working very well. Subscribe and Publish.<br />I just need to handle disconnects.&nbsp; <br />MqttClient_NetDisconnect() and MqttClient_Disconnect() seem to cause exceptions an do no restore the connection.<br />They maybe better in later versions.<br />I need to handle certificate expiration, Sever timeouts, and Network disconnects.</p><p>I will Check with Microchip about updates.<br />If not I will need to make my own reconnect function.</p><p>Thank you for all you help</p>]]></description>
			<author><![CDATA[null@example.com (Neil.Kurzman)]]></author>
			<pubDate>Fri, 08 Aug 2025 15:41:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8469.html#p8469</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to Use MQTT with Microchip Harmony 1.06]]></title>
			<link>https://www.wolfssl.com/forums/post8468.html#p8468</link>
			<description><![CDATA[<p>Hi Neil,</p><p>2.&nbsp; It may require Harmony 3, that is ultimately a question for Microchip.<br />3.&nbsp; I would recommend small stack if you need to minimize stack usage on your platform, we generally recommend it for embedded systems.&nbsp; You can find an overview of our commonly used build settings here: <a href="https://github.com/wolfSSL/wolfssl/blob/master/examples/configs/user_settings_template.h">https://github.com/wolfSSL/wolfssl/blob … template.h</a><br />If wolfSSL/wolfMQTT tries to allocate memory from the heap and fails, it will return -125 MEMORY_E.&nbsp; Your application can then try freeing memory and call the relevant function again.<br />Your toolchain should be able to measure and print the max stack usage when building your application, you may need to configure this.&nbsp; Heap usage will vary.<br />You are correct, the tradeoff for small stack is that more heap memory is used and therefore there are more malloc calls.&nbsp; Unless malloc takes a significant amount of time on your system, I would expect both options to perform the same.</p><p>4. Apologies for the bad link, please try:<br /><a href="https://github.com/wolfSSL/wolfssl-examples/tree/master/tls">https://github.com/wolfSSL/wolfssl-exam … master/tls</a><br />Yes, if you save the session you can resume it when the connection is lost as long as the server hasn&#039;t marked the session as expired.&nbsp; Otherwise you will need to perform a full handshake again.&nbsp; Either way you can restore the connection, it will just take longer if you are unable to resume a session.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Wed, 06 Aug 2025 22:49:21 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8468.html#p8468</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to Use MQTT with Microchip Harmony 1.06]]></title>
			<link>https://www.wolfssl.com/forums/post8466.html#p8466</link>
			<description><![CDATA[<p>Thank you for your Response.<br />I will Need to look at the links.</p><p>1. I will Look (The sample is for MQTT V0.10)</p><p>2. Will 5.7.0 work with Harmony 1 or does it need Harmony 3? Or is that a question for Microchip.</p><p>3. I am making a single connection to an Azure MQTT Broker.<br />I did not choose small stack. I should look at that too.<br />The Question is how much I need add to the Heap / Stack to insure SSL is Good. I still have plenty of RAM<br />Can I have it do all the mallocs and hold them. I assume large stack will do less mallocs. Does either work faster?</p><p>4. I will Look.<br />(instructions here: <a href="https://github.com/wolfSSL/wolfssl-exam">https://github.com/wolfSSL/wolfssl-exam</a> … aster/tls) this link is Bad</p><p>Right now my Subscription is working well.<br />This is a Commercial Product. (Or will Be)<br />Will the two links help a shut down and start up if the connection is lost.<br />My Application will run for months at a time unattended. I would like it to restore the connecyion on its own.</p>]]></description>
			<author><![CDATA[null@example.com (Neil.Kurzman)]]></author>
			<pubDate>Wed, 06 Aug 2025 01:34:23 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8466.html#p8466</guid>
		</item>
		<item>
			<title><![CDATA[Re: Trying to Use MQTT with Microchip Harmony 1.06]]></title>
			<link>https://www.wolfssl.com/forums/post8464.html#p8464</link>
			<description><![CDATA[<p>Hi Neil.Kurzman,</p><p>Thanks for your interest in wolfMQTT, great questions.</p><p>1.&nbsp; Please confirm which sample you&#039;re referring to.&nbsp; I would strongly recommend that you use our example found here: <a href="https://github.com/wolfSSL/wolfMQTT/tree/master/IDE/Microchip-Harmony">https://github.com/wolfSSL/wolfMQTT/tre … ip-Harmony</a><br />2.&nbsp; For wolfSSL you&#039;ll need to use the Microchip fork which is currently on 5.7.0: <a href="https://github.com/Microchip-MPLAB-Harmony/wolfssl/">https://github.com/Microchip-MPLAB-Harmony/wolfssl/</a>&nbsp; For wolfMQTT, the latest version should work if you follow the example linked above.<br />3.&nbsp; Heap usage will vary depending on your build configuration (especially whether you use small stack which will significantly increase heap usage), your algorithms, how many connections you&#039;re opening at once and your platform.&nbsp; Do you have a target for heap usage?&nbsp; How much stack do you have available on your system?<br />4.&nbsp; Yes, you can use session resumption for this.&nbsp; We have an example of this here: <a href="https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/client-tls13-resume.c">https://github.com/wolfSSL/wolfssl-exam … 3-resume.c</a> (instructions here: <a href="https://github.com/wolfSSL/wolfssl-examples/tree/master/tls)">https://github.com/wolfSSL/wolfssl-exam … aster/tls)</a></p><p>Are you able to share any information on your project?&nbsp; Are you using wolfMQTT in a personal or commercial project?<br />If any of this information is sensitive or confidential, feel free to contact us at support [AT] wolfssl [DOT] com.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Tue, 05 Aug 2025 17:59:03 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8464.html#p8464</guid>
		</item>
		<item>
			<title><![CDATA[Trying to Use MQTT with Microchip Harmony 1.06]]></title>
			<link>https://www.wolfssl.com/forums/post8456.html#p8456</link>
			<description><![CDATA[<p>I am trying to Add WolfMQTT to Microchip Harmony 1.06 Project.<br />I am having some Issues so <br />1&gt; I am Assuming the sample Works.<br />2&gt;What would be the Newest version of Wolf SSL / Wolf MQTT that will work with that version of the Microchip Network Stack<br />&nbsp; &nbsp; Wolf SSL =3.9.0 and Wolf MQTT = V0.10 / Wolf MQTT<br />3&gt; How Much Heap does it need I am sending to Azure.<br />4&gt; If I close MQTT and Net The SSL fails when I call MQTT INIT. Is there a way to leave the SSL Initialized. I may send as little as once per day so I do not want to keep the connection Open.</p>]]></description>
			<author><![CDATA[null@example.com (Neil.Kurzman)]]></author>
			<pubDate>Tue, 05 Aug 2025 05:52:05 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post8456.html#p8456</guid>
		</item>
	</channel>
</rss>
