<?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>nRF Cloud MQTT broker</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/98998/nrf-cloud-mqtt-broker</link><description>Hello, 
 I was exploring nrf Cloud and noticed that you offer an MQTT broker for accessing device information. I attempted to connect using the following credentials: 
 Hostname: mqtt.nrfcloud.com Topic: prod/teamID/ (I substituted teamID with the actual</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Apr 2023 11:54:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/98998/nrf-cloud-mqtt-broker" /><item><title>RE: nRF Cloud MQTT broker</title><link>https://devzone.nordicsemi.com/thread/422723?ContentTypeID=1</link><pubDate>Thu, 27 Apr 2023 11:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:768c2389-5bcc-438a-b7ab-492ecaca57b5</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Ahmed,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the response from our nRF Cloud team&lt;/p&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;The client id they are using is what is autogenerated by the app and is not in AWS.&lt;/div&gt;
&lt;div&gt;it looks like they are wanting to just view device info, (&amp;quot;&lt;span&gt;MQTT broker for accessing device information&amp;quot;) so they should probably use an &lt;a title="https://docs.nrfcloud.com/devices/properties/types/#account-device" href="https://docs.nrfcloud.com/Devices/Properties/Types/#account-device" rel="noopener noreferrer" target="_blank"&gt;&amp;quot;account device&amp;quot;&lt;/a&gt; type.&lt;/span&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;The CreateAccountDevice REST endpoint should be called to create the account device and obtain the credentials.&lt;/div&gt;
&lt;div&gt;example:&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="powershell"&gt;curl --location --request POST &amp;#39;https://api.nrfcloud.com/v1/devices/account&amp;#39; \
--header &amp;#39;Authorization: Bearer &amp;lt;API_KEY&amp;gt;&amp;#39;&lt;/pre&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;the response is JSON containing the account device ID and cert data.&lt;/div&gt;
&lt;div&gt;&lt;pre class="ui-code" data-mode="json"&gt;{
    &amp;quot;clientId&amp;quot;: &amp;quot;account-851bd211-a22d-4276-9226-bb621228b4f3&amp;quot;,
    &amp;quot;caCert&amp;quot;: &amp;quot;-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----\n&amp;quot;,
    &amp;quot;clientCert&amp;quot;: &amp;quot;-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----\n&amp;quot;,
    &amp;quot;privateKey&amp;quot;: &amp;quot;-----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY-----\n&amp;quot;
}&lt;/pre&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;blockquote&gt;
&lt;div&gt;from there, create a PEM file for each credential... the newlines (\n) will need to be removed.&lt;/div&gt;
&lt;div&gt;use the client id from the JSON and select the &amp;quot;self-signed&amp;quot; certificate option and select the three PEM files&lt;/div&gt;
&lt;div&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/pastedimage1682596455956v1.png" alt=" " /&gt;.&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Cloud MQTT broker</title><link>https://devzone.nordicsemi.com/thread/422452?ContentTypeID=1</link><pubDate>Wed, 26 Apr 2023 08:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8876638-20c5-4751-ab66-1cb17c4cad1a</guid><dc:creator>Ahmed Albayati</dc:creator><description>&lt;p&gt;I got&amp;nbsp;&lt;/p&gt;
[quote userid="77062" url="~/f/nordic-q-a/98998/nrf-cloud-mqtt-broker/422041"]&amp;quot;&lt;span&gt;Client network socket disconnected before secure TLS connection was established&amp;quot;&lt;/span&gt;[/quote]
&lt;p&gt;in two applications. In both &amp;quot;MQTT Explorer&amp;quot; (the one recommended in your course) and MQTTX&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Ahmed&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Cloud MQTT broker</title><link>https://devzone.nordicsemi.com/thread/422041?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2023 12:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afad3fe2-68b4-4f86-a0eb-7c4a8190df0a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;From where did you try to connect to the MQTT broker? Where do you get the message &amp;quot;&lt;span&gt;Client network socket disconnected before secure TLS connection was established&amp;quot;?&lt;br /&gt;&lt;br /&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>