<?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>nrf9160 mqtt username/pass</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49997/nrf9160-mqtt-username-pass</link><description>Hi, 
 So this may seem like a stupid question but here goes. I&amp;#39;ve been trying to learn how to implement an IoT solution. 
 
 While trying to learn more about MQTT protocol I created a test broker at cloudmqtt.com and was able to use my phone as a client</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jul 2019 13:53:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49997/nrf9160-mqtt-username-pass" /><item><title>RE: nrf9160 mqtt username/pass</title><link>https://devzone.nordicsemi.com/thread/199559?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 13:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1a5617e-c037-4438-8e32-3ad77c316552</guid><dc:creator>octvargas</dc:creator><description>&lt;p&gt;thank you, that helps&lt;/p&gt;
&lt;p&gt;additionally I found I had to add&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/*Client User Name/Pass*/&lt;br /&gt;struct mqtt_utf8 pass, user_name;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;during initialization, and&lt;/p&gt;
&lt;p&gt;/*added into function to for connectivity test*/&lt;br /&gt; pass.size = strlen(&amp;quot;MY_PASSWORD&amp;quot;);&lt;br /&gt; pass.utf8 = (u8_t *)&amp;quot;MY_PASSWORD&amp;quot;;&lt;br /&gt; user_name.size = strlen(&amp;quot;MY_USER_NAME&amp;quot;);&lt;br /&gt; user_name.utf8 = (u8_t *)&amp;quot;MY_USER_NAME&amp;quot;;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;inside the client_init function&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9160 mqtt username/pass</title><link>https://devzone.nordicsemi.com/thread/199440?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 08:03:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c67d315-7474-44ba-8223-d852f475bb71</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The client username and password are set in the client_init function found in main.c in the sample.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>