<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113372/wifi-fundamentals-lesson-4-exercise-2-not-building-using-nrf5340dk-with-nrf7002ek-shield</link><description>Hello, I am using the nrf5340dk with nrf7002ek shield and trying to build the wifi fundamentals lesson 4 exercise 2 code (connecting to MQTT over TLS) but it isn&amp;#39;t building. I&amp;#39;m using the code from here: https://github.com/NordicDeveloperAcademy/wifi</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Aug 2024 08:30:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113372/wifi-fundamentals-lesson-4-exercise-2-not-building-using-nrf5340dk-with-nrf7002ek-shield" /><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/497106?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 08:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32a02281-74db-4d34-a294-6a2a55e80d58</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What host are you trying to connect to? I tested your code with broker.hivemq.com and MQTT Explorer, and it connected successfully.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1722932883250v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you are testing against your own server, can you first check if you are able to connect to it using, for example, MQTT Explorer? Then you can verify that the certificate, username, and password are correct. Depending on the server, you might also need to provide client certificate and key in addition to the server certificate.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/496867?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2024 20:08:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8541dec2-e9e7-45c7-ac2c-e20e81ac3a92</guid><dc:creator>may_</dc:creator><description>&lt;p&gt;I tested with this fix and even though it fixed the wifi connection issue, when I&amp;nbsp;swapped&amp;nbsp;in my own certificate.h file and my MQTT connection username and password, I got&amp;nbsp;these error logs:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;[00:00:01.703,186] &amp;lt;inf&amp;gt; Familiar_Central_Hub: Waiting to connect to Wi-Fi&lt;br /&gt;uart:~$&lt;/p&gt;
&lt;p&gt;[00:00:00.488,800] &amp;lt;inf&amp;gt; wifi_nrf_bus: SPIM spi@a000: freq = 8 MHz&lt;br /&gt;[00:00:00.488,861] &amp;lt;inf&amp;gt; wifi_nrf_bus: SPIM spi@a000: latency = 0&lt;br /&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***&lt;br /&gt;*** Using Zephyr OS v3.6.99-100befc70c74 ***&lt;br /&gt;[00:00:01.751,586] &amp;lt;inf&amp;gt; Central_Hub: Waiting to connect to Wi-Fi&lt;br /&gt;uart:~$ &amp;gt; wifi_cred add &amp;quot;&amp;lt;redacted&amp;gt;&amp;quot; WPA2-PSK &amp;quot;&amp;lt;redacted&amp;gt;&amp;quot;&lt;br /&gt;wifi_cred add&lt;span&gt;&amp;quot;&amp;lt;redacted&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;quot;&lt;/span&gt; WPA2-PSK&lt;span&gt;&amp;nbsp;&amp;quot;&amp;lt;redacted&amp;gt;&amp;quot;&lt;/span&gt;&lt;br /&gt;uart:~$ &amp;gt; wifi_cred auto_connect&lt;br /&gt;wifi_cred auto_connect&lt;br /&gt;[00:00:17.987,243] &amp;lt;inf&amp;gt; wifi_mgmt_ext: Connection requested&lt;br /&gt;[00:00:23.979,217] &amp;lt;inf&amp;gt; Central_Hub: Network connected&lt;br /&gt;[00:00:23.979,827] &amp;lt;inf&amp;gt; Central_Hub: Connecting to MQTT broker&lt;br /&gt;[00:00:24.016,143] &amp;lt;inf&amp;gt; Central_Hub: IPv4 address of MQTT broker found &amp;lt;redacted-ipv4-address&amp;gt;&lt;br /&gt;[00:00:25.091,033] &amp;lt;err&amp;gt; Central_Hub: MQTT connect failed: 5&lt;br /&gt;[00:00:25.094,940] &amp;lt;inf&amp;gt; Central_Hub: MQTT client disconnected: -111&lt;br /&gt;[00:00:25.094,970] &amp;lt;err&amp;gt; Central_Hub: Error in mqtt_input: -111&lt;br /&gt;[00:00:25.094,970] &amp;lt;inf&amp;gt; Central_Hub: Disconnecting MQTT client&lt;br /&gt;[00:00:25.095,001] &amp;lt;err&amp;gt; Central_Hub: Could not disconnect MQTT client: -128&lt;br /&gt;uart:~$&lt;br /&gt;&lt;br /&gt;the only changes I had made were:&lt;br /&gt;1. adding this code to client_init:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mqtt_utf8&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;username&lt;/span&gt;&lt;span&gt; = {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; .utf8 = (&lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; *)CONFIG_MQTT_BROKER_USERNAME,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; .size = &lt;/span&gt;&lt;span&gt;strlen&lt;/span&gt;&lt;span&gt;(CONFIG_MQTT_BROKER_USERNAME)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;client&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;user_name&lt;/span&gt;&lt;span&gt; = &amp;amp;&lt;/span&gt;&lt;span&gt;username&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;mqtt_utf8&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;password&lt;/span&gt;&lt;span&gt; = {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; .utf8 = (&lt;/span&gt;&lt;span&gt;uint8_t&lt;/span&gt;&lt;span&gt; *)CONFIG_MQTT_BROKER_PASSWORD,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; .size = &lt;/span&gt;&lt;span&gt;strlen&lt;/span&gt;&lt;span&gt;(CONFIG_MQTT_BROKER_PASSWORD)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;client&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;password&lt;/span&gt;&lt;span&gt; = &amp;amp;&lt;/span&gt;&lt;span&gt;password&lt;/span&gt;&lt;span&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;2. and adding these values to the prj.conf&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MQTT_BROKER_USERNAME&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&amp;lt;redacted&amp;gt;&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MQTT_BROKER_PASSWORD&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;&amp;lt;redacted&amp;gt;&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;3. and adding these values to the kconfig:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;MQTT_BROKER_USERNAME&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;string&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;MQTT broker username&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;&amp;lt;redacted&amp;gt;&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;config&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;MQTT_BROKER_PASSWORD&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;string&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;MQTT broker password&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;default&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;quot;&amp;lt;redacted&amp;gt;&amp;quot;&lt;br /&gt;&lt;br /&gt;can you help me figure out why this is happening?&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/496373?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 09:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71f59a55-9b27-4bf4-ba51-de37b3dd1bae</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems like CONFIG_POSIX_MAX_FDS had to be increased to 16. I have fixed this in the affected exercises and pushed the fix. Can you test and see if you can connect with the fix?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/496302?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 00:19:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79ed3c2e-41a9-4d8f-b5dc-0384c2a11ed4</guid><dc:creator>may_</dc:creator><description>&lt;p&gt;thank you, looking forward to hearing back from you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/496197?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 12:04:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cc57fd3-fb4b-43fa-bb46-9bd45f67f034</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I can reproduce this issue using both nRF5340 DK with shield and nRF7002 DK. &lt;br /&gt;I have forwarded it internally, and the DevAcademy team will look into it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/495889?ContentTypeID=1</link><pubDate>Sun, 28 Jul 2024 01:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfa9aa88-f030-4f41-a2b5-e61a7a66b863</guid><dc:creator>may_</dc:creator><description>&lt;p&gt;yes i am able to get the wifi station sample to work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;no, i am unable to connect to a different network in this code, but i am able to connect to a different network on the wifi station sample.&lt;br /&gt;&lt;br /&gt;it also looks like the FLASH and RAM usage for the wifi fund lesson 4 exercise 2 code is at 94% for each. i am just building the exact code that is in the github related to this course so&amp;nbsp;would you&amp;nbsp;mind trying to&amp;nbsp;build it with the nrf5340dk board with the nrf7002ek shield and let me know if you get the same&amp;nbsp;error as me in not being able to connect to wifi? i believe this is a bug in the sample code and i&amp;#39;m truly not sure how to fix this! i would really appreciate some suggestions to help guide next steps in regards to fixing this sample code. thank you&amp;nbsp;so much in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/495814?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 12:32:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8e5f94c-ae89-4a90-b316-6e4b24eeadbb</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to connect to the network with any of the other Devacademy exercises or one of our samples, for example, the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.7.0/page/nrf/samples/wifi/sta/README.html"&gt;Wi-Fi Station&lt;/a&gt; sample?&lt;/p&gt;
&lt;p&gt;Are you able to connect to a different network?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/495711?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2024 00:47:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dfd6096-ad73-4ad9-8a63-d503b389216d</guid><dc:creator>may_</dc:creator><description>&lt;p&gt;hello, this fixed building the app but now i am still unable to connect to wifi and i see this error in the serial monitor:&lt;br /&gt;&lt;br /&gt;[00:00:00.487,884] &amp;lt;inf&amp;gt; wifi_nrf_bus: SPIM spi@a000: freq = 8 MHz&lt;br /&gt;[00:00:00.487,945] &amp;lt;inf&amp;gt; wifi_nrf_bus: SPIM spi@a000: latency = 0&lt;br /&gt;*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 ***&lt;br /&gt;*** Using Zephyr OS v3.6.99-100befc70c74 ***&lt;br /&gt;[00:00:00.639,190] &amp;lt;inf&amp;gt; Lesson4_Exercise2: Initializing LED library&lt;br /&gt;[00:00:00.639,282] &amp;lt;inf&amp;gt; Lesson4_Exercise2: Successfully Initialized LED library&lt;br /&gt;[00:00:00.642,913] &amp;lt;dbg&amp;gt; net_sock_svc: socket_service_thread: (net_socket_service): Service WEST_TOPDIR/zephyr/subsys/net/lib/dns/resolve.c:70 has 2 pollable sockets&lt;br /&gt;[00:00:00.643,859] &amp;lt;dbg&amp;gt; net_sock_svc: socket_service_thread: (net_socket_service): Monitoring 2 socket entries&lt;br /&gt;[00:00:00.648,284] &amp;lt;dbg&amp;gt; net_ctx: net_context_bind: (wpa_supplicant_main): Context 0x2001cb14 bind to type 0x888e iface[1] 0x20019878 addr F4:CE:36:00:4F:67&lt;br /&gt;[00:00:01.639,373] &amp;lt;inf&amp;gt; Lesson4_Exercise2: Waiting to connect to Wi-Fi&lt;br /&gt;uart:~$ &amp;gt; wifi_cred add &amp;quot;wifiname&amp;quot; WPA2-PSK &amp;quot;wifipassword&amp;quot;&lt;br /&gt;wifi_cred add &amp;quot;&lt;span&gt;wifiname&lt;/span&gt;&amp;quot; WPA2-PSK &amp;quot;&lt;span&gt;wifipassword&lt;/span&gt;&amp;quot;&lt;br /&gt;uart:~$ &amp;gt; wifi_cred auto_connect&lt;br /&gt;wifi_cred auto_connect&lt;br /&gt;[00:00:07.781,097] &amp;lt;err&amp;gt; wifi_mgmt_ext: Connection request failed&lt;/p&gt;
&lt;p&gt;even though i did not change any code besides adding more logging to prj.conf and i verified that i can connect to my wifi with other devices.&lt;br /&gt;&lt;br /&gt;for context i am using an nrf5340dk with an nrf7002ek shield and here&amp;#39;s what my build looks like:&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721954776074v1.png" alt=" " /&gt;&lt;br /&gt;i do not have an app.overlay file because i just used the sample code from the course. can you help me figure out why this isnt connecting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wifi Fundamentals Lesson 4 Exercise 2 not building, using nrf5340dk with nrf7002ek shield</title><link>https://devzone.nordicsemi.com/thread/495412?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2024 12:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32bad934-9b18-460f-ac74-b4a7d9111ee1</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sysbuild support has not been added to the exercises in this course yet, so please make sure that the &amp;quot;Use sysbuild&amp;quot; option is unchecked when creating the build configuration.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1721824506700v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Having this option checked will lead to the errors you are seeing.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>