<?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 — [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
		<link>https://www.wolfssl.com/forums/topic1169-solved-wolfmqtt-with-mplab-harmony-how-to-guide.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1169.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] WolfMQTT with MPLab Harmony - How to guide?.]]></description>
		<lastBuildDate>Fri, 30 Nov 2018 13:22:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post4322.html#p4322</link>
			<description><![CDATA[<p>SOLVED!</p><p>David Garske helped me out and tracked down the issue that was preventing my project from compiling with wolfMQTT v0.9 or above:</p><div class="quotebox"><blockquote><p>I was able to reproduce the issue and tracked it down to a circular include issue where mqtt_types.h was including system_definitions.h, which included app.h, which included mqtt_client.h. Without the remainder of mqtt_types.h defined it was causing the errors. With the patch below I am able to build your project.</p></blockquote></div><p>David provided a patch to wolfMQTT v1.2 that is now merged and can be seen here:</p><p><a href="https://github.com/wolfSSL/wolfMQTT/pull/98/files">https://github.com/wolfSSL/wolfMQTT/pull/98/files</a></p>]]></description>
			<author><![CDATA[null@example.com (mattgarfield)]]></author>
			<pubDate>Fri, 30 Nov 2018 13:22:47 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4322.html#p4322</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post4300.html#p4300</link>
			<description><![CDATA[<p>@smitthhyy and @zoomto.jitendra - did either of you figure out a solution to your compile failures with wolfMQTT and MPLAB Harmony? I&#039;m having some very similar issues and I&#039;d like to throw my hat in the ring with you two to figure this out and get a solution posted once and for all!</p><p>@dgarske - thank you for all of the awesome work you&#039;ve done with wolfMQTT to date! You may have some insight on my problem...</p><p><strong>Setup:</strong></p><p>I developed a hardware device that was originally based on the<a href="https://www.microchip.com/developmenttools/ProductDetails/DM990004"> IoT Ethernet Kit (DM990004)</a> by Microchip. The kit came with <a href="https://github.com/MicrochipTech/aws-iot-firmware-pic32mz"> example firmware for MPLAB Harmony </a> which used <strong>wolfMQTT v0.6</strong>. This was before wolfMQTT was officially integrated with MPLAB Harmony. </p><p>I&#039;m currently making some firmware updates to my product and I wanted to update my MPLAB Harmony Project to:</p><p>1.) take advantage of the fact that wolfMQTT is now integrated into MPLAB Harmony and <br />2.) utilize the latest version of <strong>wolfMQTT (v1.2)</strong></p><p>I created a new MPLAB Harmony Project, imported my previous MPLAB Harmony Configurator (.mhc) file,&nbsp; added my selection for wolfMQTT from the MHC list (now that it&#039;s integrated), and clicked &#039;Generate Code.&#039;</p><p>Next I downloaded the latest version of wolfMQTT (v1.2) and <a href="https://github.com/wolfSSL/wolfMQTT">followed these instructions</a> to be sure this updated version was added to my Project.</p><p>Finally, I copied my application specific source files from my old Project to the new Project. I also had to replace a few Harmony generated files with versions from my original project that were slightly modified by //DCG (David Garske, I suspect):</p><p>- net_pres_enc_glue.c<br />- net_pres_cert_store.c<br />- system_interrupt.c</p><p><strong>Problem:</strong></p><p>When I attempted to compile this new Project, it failed with errors that are similar to what @smithhyy described - results that look like #include errors but they don&#039;t make sense because it seems like all of the appropriate #include statements are where they belong for the wolfMQTT files <strong>(see attachment)</strong>.</p><p>For example, <em>mqtt_socket.h </em>seems to not understand what <em>word16 </em>means, but <em>word16 </em>is defined in <em>mqtt_types.h </em>and <em>mqtt_types.h </em>is #included at the top of <em>mqtt_socket.h </em>- so it should have access to that information.</p><p><strong>New Information:</strong></p><p>On my PC, the wolfMQTT folder is located here:</p><p>C:\microchip\harmony\v2_06\third_party\tcpip\wolfMQTT</p><p>Just for kicks, I closed MPLAB, then replaced the contents of this folder (currently containing the v1.2 files) with the v0.6 files. I reopened MPLAB and compiled the Project again -&nbsp; success! So the Project is setup fine, but there&#039;s something about the differences in the wolfMQTT files between v0.6 and v1.2 that&#039;s causing the compile errors.</p><p>I started repeating this process to step through the wolfMQTT versions to see where the compile errors start:</p><p>- v0.6: compiled<br />- v0.8: compiled<br />- v0.9: failed<br />- v0.10: failed (version currently included in Harmony v2.06)<br />[did not test the versions between here]<br />- v1.2: failed</p><p>wolfMQTT v0.9 is the first version that &quot;Added Microchip Harmony support&quot; and it&#039;s the first version that breaks my project on compile. So the first version of wolfMQTT that is setup for Harmony integration doesn&#039;t work with my Project/code that was written prior to integration.</p><p>I know @dgarske said he tested one of the later versions of wolfMQTT with Harmony v2.05 and did not get the errors that @smittthhyy saw. I&#039;m wondering if there&#039;s something else related to the IDE or Project that might be causing this for some of us, but not for David?</p>]]></description>
			<author><![CDATA[null@example.com (mattgarfield)]]></author>
			<pubDate>Thu, 22 Nov 2018 00:45:47 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4300.html#p4300</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3779.html#p3779</link>
			<description><![CDATA[<p>Other file could not be attached earlier. I&#039;m attaching it here.</p>]]></description>
			<author><![CDATA[null@example.com (zoomto.jitendra)]]></author>
			<pubDate>Mon, 22 Jan 2018 13:20:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3779.html#p3779</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3778.html#p3778</link>
			<description><![CDATA[<p>Hi dgarske</p><p>I&#039;m still getting errors. I guess there is an issue in BSP. I tried to compare the example projects directory tree of &quot;mqtt_client&quot;and &quot;wolf_tcp_client&quot;given under harmony. I&#039;m attaching those files. Below is the project loading error which I&#039;m getting in the IDE initially. Of course, there are other errors too. But, I believe they will be fixed if system_config directory is properly aligned which deals with BSP and framework under it. Please let me know what is the BSP you have chosen for successful building. </p><p>I believe example projects should never give build errors. Why is it so happening. Later on I need to implement this MQTT on PIC32MX370F512H custom target board communicating with wifi chip MRF24WN0MB as mentioned earlier. But I&#039;m struck at running example projects itself. </p><p>Please help me in this regards.</p><br /><p>project loading error:<br />=============<br />warning: Configuration &quot;default&quot; builds with &quot;XC32&quot;, but indicates no toolchain directory.<br />info: Configuration &quot;default&quot; will build with toolchain &quot;XC32&quot; at &quot;C:\Program Files (x86)\Microchip\xc32\v1.44\bin&quot;.<br />warning: Configuration &quot;default&quot; refers to file &quot;C:\microchip\harmony\v2_05_01\apps\wolfmqtt_client\firmware\src\system_config\default\framework\net\pres\net_pres_enc_glue.h&quot; which does not exist in the disk. The make process might not build correctly.<br />warning: Configuration &quot;default&quot; refers to file &quot;C:\microchip\harmony\v2_05_01\apps\wolfmqtt_client\firmware\src\system_config\default\framework\system\clk\sys_clk_static.h&quot; which does not exist in the disk. The make process might not build correctly.<br />warning: Configuration &quot;default&quot; refers to file &quot;C:\microchip\harmony\v2_05_01\apps\wolfmqtt_client\firmware\src\system_config\default\config.h&quot; which does not exist in the disk. The make process might not build correctly.<br />warning: Configuration &quot;default&quot; refers to file &quot;C:\microchip\harmony\v2_05_01\apps\wolfmqtt_client\firmware\src\system_config\default\system_config.h&quot; which does not exist in the disk. The make process might not build correctly.<br />warning: Configuration &quot;default&quot; refers to file &quot;C:\microchip\harmony\v2_05_01\apps\wolfmqtt_client\firmware\src\system_config\default\system_definitions.h&quot; which does not exist in the disk. The make process might not build correctly.<br />warning: Configuration &quot;default&quot; refers to file &quot;C:\microchip\harmony\bsp\pic32mx_eth_sk2\bsp_config.h&quot; which does not exist in the disk. The make process might not build correctly.</p><p>Thanks &amp; Regards<br />Jitendra</p>]]></description>
			<author><![CDATA[null@example.com (zoomto.jitendra)]]></author>
			<pubDate>Mon, 22 Jan 2018 13:17:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3778.html#p3778</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3777.html#p3777</link>
			<description><![CDATA[<p>Hi zoomto.jitendra,</p><p>The net_pres_enc_glue.c is a generated file from the Harmony tool. Under the networking section you will find a net presentation checkbox.</p><p>The wolfmqtt_client example demonstrates your basic MQTT client features such as connect, subscribe and publish. The `wolfmqtt_firmware` project demonstrates using MQTT for a firmware update example.</p><p>Thanks,<br />David Garske, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (dgarske)]]></author>
			<pubDate>Fri, 19 Jan 2018 18:06:06 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3777.html#p3777</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3776.html#p3776</link>
			<description><![CDATA[<p>Followed the instructions above and tried to build the &#039;wolfmqtt_client&#039; project both in Mplab Harmony v2_04 and v2_05. Getting the build error below:</p><p>make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf<br />make[1]: Entering directory &#039;C:/microchip/harmony/v2_04/apps/tcpip/wolfmqtt_client/firmware/mqtt_client.X&#039;<br />make&nbsp; -f nbproject/Makefile-default.mk dist/default/production/mqtt_client.X.production.hex<br />make[2]: Entering directory &#039;C:/microchip/harmony/v2_04/apps/tcpip/wolfmqtt_client/firmware/mqtt_client.X&#039;<br />make[2]: Leaving directory &#039;C:/microchip/harmony/v2_04/apps/tcpip/wolfmqtt_client/firmware/mqtt_client.X&#039;<br />nbproject/Makefile-default.mk:90: recipe for target &#039;.build-conf&#039; failed<br />make[1]: Leaving directory &#039;C:/microchip/harmony/v2_04/apps/tcpip/wolfmqtt_client/firmware/mqtt_client.X&#039;<br />nbproject/Makefile-impl.mk:39: recipe for target &#039;.build-impl&#039; failed<br />make[2]: *** No rule to make target &#039;../src/system_config/default/framework/net/pres/net_pres_enc_glue.c&#039;, needed by &#039;build/default/production/_ext/1278673032/net_pres_enc_glue.o&#039;.&nbsp; Stop.<br />make[1]: *** [.build-conf] Error 2<br />make: *** [.build-impl] Error 2</p><p>BUILD FAILED (exit value 2, total time: 843ms)</p><br /><p>Please let me know what went wrong.</p>]]></description>
			<author><![CDATA[null@example.com (zoomto.jitendra)]]></author>
			<pubDate>Fri, 19 Jan 2018 10:14:41 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3776.html#p3776</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3775.html#p3775</link>
			<description><![CDATA[<p>Hi Kaleb<br />Can you please let me know briefly what&nbsp; &#039;&#039;wolfmqtt_client&quot; and &quot;wolfmqtt_firmware&quot; projects are individually meant for. If suppose I&#039;m running &#039;&#039;wolfmqtt_client&quot; where can I check if data is sent to the server? Under Mplab Harmony help I couldnt find explanation on these two projects. Please provide me that information.</p><p>Thanks &amp; Regards<br />Jitendra</p>]]></description>
			<author><![CDATA[null@example.com (zoomto.jitendra)]]></author>
			<pubDate>Fri, 19 Jan 2018 06:08:49 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3775.html#p3775</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3771.html#p3771</link>
			<description><![CDATA[<p>Hi smitthhyy &amp; dgarske</p><p>Even I&#039;m working on the similar task where I&#039;m using PIC32MX370F512H custom target board communicating with wifi chip MRF24WN0MB. By following the online tutorials and sample example codes under harmony I could connect to access point.I&#039;ve used&nbsp; &quot;wifi_easy_configuration&quot; example project under &quot;C:\microchip\harmony\v2_04\apps\tcpip&quot; path as reference. My end goal is to add MQTT feature to this project and send data to the server. </p><p>Please help me in - How to proceed with implemening the use case and test it from the scratch. </p><p>I am new to MQTT, just know the theoretical basics.Please help me to go ahead by providing me necessary documents and sample projects in harmony for my use case.</p><p>Warm Regards<br />Jitendra</p>]]></description>
			<author><![CDATA[null@example.com (zoomto.jitendra)]]></author>
			<pubDate>Thu, 18 Jan 2018 11:08:40 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3771.html#p3771</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3768.html#p3768</link>
			<description><![CDATA[<p>Hi smitthhyy,</p><p>I am the author of the wolfMQTT library and did the integration into Harmony. I just downloaded the Harmony v2.05 to test it out. You must be having some include issues. The build error doesn&#039;t make sense to me since `mqtt_packet.h`defines `MqttMessage`, which is included just above in mqtt_client.h.</p><p>As for v0.10 in Harmony it looks like Microchip hasn&#039;t been updating the library, so I will ping them about getting it updated.</p><p>For now the best solution is to download the latest from us directly and replace it inside the Harmony `third_party/tcpip/wolfmqtt`.<br /><a href="https://github.com/wolfSSL/wolfMQTT">https://github.com/wolfSSL/wolfMQTT</a><br />Then you&#039;ll have to re-generate your Harmony code. The README.md Kaleb provided explains how to do this.</p><p>Let me know if that is helpful or not. If you continue to get errors please email us at support@wolfssl.com and include the project for reference.</p><p>Thanks,<br />David Garske, wolfSSL</p>]]></description>
			<author><![CDATA[null@example.com (dgarske)]]></author>
			<pubDate>Tue, 16 Jan 2018 20:22:30 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3768.html#p3768</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3765.html#p3765</link>
			<description><![CDATA[<p>Hi smitthhyy,</p><p>In the wolfMQTT download you will find a directory:</p><p>wolfMQTT/IDE/Microchip-Harmony</p><p>That directory contains a detailed README that will get you started. You can also view it online in our github repository here:<br /><a href="https://github.com/wolfSSL/wolfMQTT/blob/master/IDE/Microchip-Harmony/README.md">https://github.com/wolfSSL/wolfMQTT/blo … /README.md</a></p><p>Let us know if you have any further issues getting setup with Microchip Harmony.</p><br /><p>Cheers,</p><p>Kaleb</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Mon, 15 Jan 2018 22:53:47 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3765.html#p3765</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] WolfMQTT with MPLab Harmony - How to guide?]]></title>
			<link>https://www.wolfssl.com/forums/post3764.html#p3764</link>
			<description><![CDATA[<p>Does anyone know of a guide or how to on using WolfMQTT within Harmony that steps through how to use it.&nbsp; There is an example in the wolfmqtt examples folder but that&#039;s a very generic one that works on Windows within visual studio and has no references to harmony except for a couple of compiler if&#039;s.</p><p>I follow the lab1 guide in <a href="http://ww1.microchip.com/downloads/en/DeviceDoc/TCP-IP%20Stack%20Libraries_v111.pdf">Introduction to the MPLAB® Harmony TCP/IP Stack</a> which gets the TCP/IP stack running and connected and able to ping the PIC32MZ EF Starter Kit. (I&#039;m using PIC32MZ20148EFM144 which is the only thing I need to change from the lab guide).&nbsp; MPLAB X IDE v4.05 on Windows with XC32(v1.42) and Harmony 2.0.5. The MHC is from the harmony 2.0.5 folder.</p><p>I use MHC to add wolfMQTT (in the Third Party Libraries section) and without doing anything else, it does compile.&nbsp; WolfMQTT version included with Harmony 2.0.5 is version 0.10 (version.h - #define LIBWOLFMQTT_VERSION_STRING &quot;0.10&quot;). EDIT: Change to use v0.14.0 has same result.</p><p>As soon as I add #include &quot;wolfmqtt/mqtt_client.h&quot; to app.h I get a plethora of errors where the compiler can&#039;t find things, for example (just a few):</p><p>&quot;C:\Program Files (x86)\Microchip\xc32\v1.44\bin\xc32-gcc.exe&quot; -g -x c -c -mprocessor=32MZ2048EFM144 -ffunction-sections -O1 -DHAVE_CONFIG_H -I../src -I../src/system_config/pic32mz_ef_m_sk -I../src/pic32mz_ef_m_sk -I../../../../framework -I../src/system_config/pic32mz_ef_m_sk/framework -I../src/system_config/pic32mz_ef_m_sk/bsp -I../../../../third_party/tcpip/wolfmqtt -MMD -MF build/pic32mz_ef_m_sk/production/_ext/1029000301/mqtt_packet.o.d -o build/pic32mz_ef_m_sk/production/_ext/1029000301/mqtt_packet.o ../../../../third_party/tcpip/wolfmqtt/src/mqtt_packet.c -DXPRJ_pic32mz_ef_m_sk=pic32mz_ef_m_sk -no-legacy-libc <br /><span style="color: blue"><span class="bbu">nbproject/Makefile-pic32mz_ef_m_sk.mk:679: recipe for target &#039;build/pic32mz_ef_m_sk/production/_ext/1029000301/mqtt_packet.o&#039; failed<br />In file included from ../src/app.h:61:0,<br />from ../src/system_config/pic32mz_ef_m_sk/system_definitions.h:68,<br />from ../../../../third_party/tcpip/wolfmqtt/wolfmqtt/mqtt_types.h:50,<br />from ../../../../third_party/tcpip/wolfmqtt/wolfmqtt/mqtt_packet.h:34,<br />from ../../../../third_party/tcpip/wolfmqtt/src/mqtt_packet.c:27:<br />../../../../third_party/tcpip/wolfmqtt/wolfmqtt/mqtt_client.h:61:54: error: unknown type name &#039;MqttMessage&#039;</span></span><br /><span style="color: red">typedef int (*MqttMsgCb)(struct _MqttClient *client, MqttMessage *message,</span><br />^<br /><span style="color: blue"><span class="bbu">../../../../third_party/tcpip/wolfmqtt/wolfmqtt/mqtt_client.h:91:5: error: unknown type name &#039;word32&#039;</span></span><br /><span style="color: red">word32 flags; /* MqttClientFlags */</span><br />^<br /><span style="color: blue"><span class="bbu">../../../../third_party/tcpip/wolfmqtt/wolfmqtt/mqtt_client.h:109:5: error: unknown type name &#039;MqttMsgCb&#039;</span></span><br /><span style="color: red">MqttMsgCb msg_cb;</span></p><p>I&#039;ve tried just calling functions from within app.c, but that also fails. </p><p>Also tried including all of the wolfmqtt files, but that doesn&#039;t help either (which I didn&#039;t expect it to)</p><p>Any guidance is greatly appreciated. </p><p>End goal is subscribe to a topic on a MQTT server (mosquitto) and publish to that topic from the PIC32.</p>]]></description>
			<author><![CDATA[null@example.com (smitthhyy)]]></author>
			<pubDate>Sat, 13 Jan 2018 00:11:08 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post3764.html#p3764</guid>
		</item>
	</channel>
</rss>
