<?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>Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52880/easiest-way-to-subscribe-to-mqtt-messages-from-thingy91-on-the-nrf-cloud</link><description>Hi, 
 
 What&amp;#39;s the easiest way to subscribe to the MQTT messages that the thingy91 sends to the nRF cloud? 
 I have tried setting it up with a node-red and a python client, but I&amp;#39;m never able to connect to the MQTT broker that is set up in the nRF cloud</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Oct 2019 07:50:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52880/easiest-way-to-subscribe-to-mqtt-messages-from-thingy91-on-the-nrf-cloud" /><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/215831?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 07:50:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378dd1df-09b5-46de-80fd-daccb525e793</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Apologies for the late reply.&amp;nbsp;&lt;/p&gt;
[quote user="Joakim U"]Did you use a Windows to format it or did it work better in Linux?[/quote]
&lt;p&gt;I used a standard text editor which I copied the output to, and made sure to &lt;strong&gt;add a new line after \n&lt;/strong&gt; (visible in the output). When this is done you should have the correct format, but&amp;nbsp;may need to remove &lt;strong&gt;\n&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/215140?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 16:54:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12566ef1-204b-4e01-8d8c-158743bd6b29</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I will start testing with Mosquitto and also the Curl command you sent above, in order to see if it helps. Did you use a Windows to format it or did it work better in Linux?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Joakim Uddenfeldt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/215075?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 12:28:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45ab2347-73ab-4a4c-a4a6-82fdf54f3bc1</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Joakim,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;there have been updates on the nRF Cloud API. To get the correct certificates and client-id to use when connecting to the Thingy:91 broker, please run the following:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt; http POST https://api.nrfcloud.com/v1/account/certificates Authorization:&amp;quot;Bearer b09f76779f504da08ffea13814024ce545f68b3b&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will output CA certificate, Client Certificate and Private Key, which you need to format correctly in separate files.&lt;/p&gt;
&lt;p&gt;As I am not familiar with Node-Red, I do not know how to answer questions about this. I have tested using Mosquitto, and I urge you test with this first to validate the connection.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/214915?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 15:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:272a526c-8e28-4b8b-902d-05d5a1dfe946</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;No worries, I might have been a bit unclear myself&amp;nbsp;as well. What I have&amp;nbsp;done is actually to use the certificate manager in the same way that you are describing, in other words, i&amp;#39;m only using it to get the certificates in the right format. As I&amp;#39;m using Windows, I assumed this was the best way of formatting&amp;nbsp;the certificates. Once I have done that, I check the certificates against&amp;nbsp; this tool:&amp;nbsp;&lt;a href="https://www.sslshopper.com/certificate-decoder.html"&gt;https://www.sslshopper.com/certificate-decoder.html&lt;/a&gt;, which tells me if the certificate is correctly formatted.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m currently using Node-red (&lt;a href="https://nodered.org/"&gt;https://nodered.org&lt;/a&gt;) to test out these connections. I haven&amp;#39;t set up a broker, instead I&amp;#39;m trying to subscribe to the broker that my Thingy is sending its data to, which is the one you can see below. The error I receive is the following:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;8 Oct 08:31:15 - [info] [mqtt-broker:Thingy91] Connection failed to broker: mqtts://a2n7tk1kp18wix-ats.iot.us-east-1.amazonaws.com:8883&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;I know it perhaps doesn&amp;#39;t say much, but that&amp;#39;s the feedback I get from that program.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My workaround is to use HTTP requests to retrieve&amp;nbsp;the messages, but it is not as nice implementation as MQTT.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Joakim Uddenfeldt&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/214821?ContentTypeID=1</link><pubDate>Mon, 14 Oct 2019 12:01:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6467445a-bbcb-40a2-b601-5acd19dc10f1</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Joakim,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;First I must apologize for not being very clear when asking about the certificate manager. You are not supposed to click on Update Certificates. The only reason to use this is to get the certificates in the correct format to copy and paste into separate certificates, and then close the Certificate Manager. You will need to remove the device and add the device again to your nRF Cloud account.&lt;/p&gt;
[quote user="Joakim U"]I&amp;#39;m still uncertain what the issue can be, but the error I receive is that I can&amp;#39;t connect to the broker, which might be due to the certification error that I pointed out above.[/quote]
&lt;p&gt;Where are you receiving the error? And what error are you receiving?&amp;nbsp;&lt;/p&gt;
[quote user="Joakim U"] have tested that my tools work with another MQTT broker and it works fine.[/quote]
&lt;p&gt;What MQTT broker did you use?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/214231?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 22:31:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7cb6a6f-fc59-4096-9a16-7e63bf3d7cc7</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;Unfortunately i&amp;#39;m still unable to subscribe to anything that my Thingy91 is sending. I have tested that my tools work with another MQTT broker and it works fine. I&amp;#39;m still uncertain what the issue can be, but the error I receive is that I can&amp;#39;t connect to the broker, which might be due to the certification error that I pointed out above.&lt;/p&gt;
&lt;p&gt;As I mentioned earlier, two of my 3 certificates checks out where I can read information such as&lt;/p&gt;
&lt;h5&gt;&lt;b&gt;Common Name:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;nrf-IMEI&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;Organization:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Nordic Semiconductor ASA&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;Locality:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Trondheim&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;State:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Trondelag&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;Country:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;NO&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;Valid From:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;October , 2019&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;Valid To:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;September , 2049&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;Issuer:&lt;/b&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;Nordic Semiconductor&lt;/h5&gt;
&lt;h5&gt;&lt;b&gt;Serial Number:&lt;/b&gt;&lt;span&gt;&amp;nbsp;serial number&lt;/span&gt;&lt;/h5&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/214141?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 11:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1369a23-5f0c-4f04-b740-b1736b469fc3</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hi &amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;Yes, I did exactly that and I also received an AT OK from the Link Monitor. I will test it out today again, as I re-did this step yesterday, but then ended up with the POLLHUP error which I later solved.&lt;/p&gt;
&lt;p&gt;Thanks for forwarding this issue, I appreciate that.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Joakim Uddenfeldt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/214070?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 08:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b454385-c04d-4b96-a29c-1f0a1f7bf9e4</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;When you imported the .json file to the Certificate Manager, did you also click on Update Certificates? Hence the AT OK from Link Monitor.&lt;br /&gt;&lt;br /&gt;I have forwarded this topic to our nRF Cloud team and will get back to you with an answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/214015?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 21:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f774a793-af14-4e6b-afaf-0edf064d6640</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hmm it seems that it might be something wrong with my private key. When I check my CA certificate and Client certificate, with a certificate checker, I get an OK back. However when I check my private key, I get an error back. If this is the case, it makes sense why I can&amp;#39;t get it to work. As I mentioned earlier, I&amp;#39;m using nRF cloud to download the certificates and then load the .json file in the certificates manager, this helps me copy the certificates in the right format. When I use the curl command, I only receive a private key, which also gets an error when I check it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/214008?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 20:37:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09b7e87e-e7dd-4c22-889f-efcaa0fa5cc6</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;Thank you for testing it out, it&amp;#39;s much appreciated. It seems that I might ve done something incorrectly if you were able to get it working.&lt;/p&gt;
&lt;p&gt;I downloaded the certificates from the nRF Cloud Account, but perhaps I should do it using the curl command? It should be the same I assume?&lt;/p&gt;
&lt;p&gt;I get an AT OK from the Link Monitor when I load the certificates, so it should be correct and I&amp;#39;m also able to read messages from my nRF Cloud account. I will have a look at your output above to see if I have done something incorrectly&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Joakim Uddenfeldt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/213814?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2019 08:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81d2dc31-6aaa-44f7-97fc-98655c8c3e83</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi Joakim,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So I tried using Mosquitto to subscribe to my Thingy:91 using:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="bat"&gt; mosquitto_sub.exe -h a2n7tk1kp18wix-ats.iot.us-east-1.amazonaws.com -t prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/# --cert 237059_cert-2.pem.crt --cafile 237059_CA.pem -p 8883 --key 237059_PK-2.pem.key -d -i prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This outputs:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account sending CONNECT
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received CONNACK (0)
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account sending SUBSCRIBE (Mid: 1, Topic: prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/#, QoS: 0, Options: 0x00)
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received SUBACK
Subscribed (mid: 1): 0
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PUBLISH (d0, q0, r0, m0, &amp;#39;prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/d/nrf-352656100830234/d2c&amp;#39;, ... (51 bytes))
{&amp;quot;appId&amp;quot;:&amp;quot;TEMP&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;25.8&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PUBLISH (d0, q0, r0, m0, &amp;#39;prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/d/nrf-352656100830234/d2c&amp;#39;, ... (52 bytes))
{&amp;quot;appId&amp;quot;:&amp;quot;HUMID&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;16.8&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PUBLISH (d0, q0, r0, m0, &amp;#39;prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/d/nrf-352656100830234/d2c&amp;#39;, ... (56 bytes))
{&amp;quot;appId&amp;quot;:&amp;quot;AIR_PRESS&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;98.6&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PUBLISH (d0, q0, r0, m0, &amp;#39;prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/d/nrf-352656100830234/d2c&amp;#39;, ... (51 bytes))
{&amp;quot;appId&amp;quot;:&amp;quot;RSRP&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;-115&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PUBLISH (d0, q0, r0, m0, &amp;#39;prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/d/nrf-352656100830234/d2c&amp;#39;, ... (51 bytes))
{&amp;quot;appId&amp;quot;:&amp;quot;TEMP&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;25.8&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PUBLISH (d0, q0, r0, m0, &amp;#39;prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/d/nrf-352656100830234/d2c&amp;#39;, ... (52 bytes))
{&amp;quot;appId&amp;quot;:&amp;quot;HUMID&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;16.7&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PUBLISH (d0, q0, r0, m0, &amp;#39;prod/f1b2cfb2-e82e-4b13-819a-0db2bf5fad69/m/d/nrf-352656100830234/d2c&amp;#39;, ... (56 bytes))
{&amp;quot;appId&amp;quot;:&amp;quot;AIR_PRESS&amp;quot;,&amp;quot;data&amp;quot;:&amp;quot;98.6&amp;quot;,&amp;quot;messageType&amp;quot;:&amp;quot;DATA&amp;quot;}
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account sending PINGREQ
Client prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account received PINGRESP&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where did you get the certificates from? Did you use the following command from the MQTT API?&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;http POST https://api.nrfcloud.com/v1/account/certificates Authorization:&amp;quot;Bearer b09f76779f504da08ffea13814024ce545f68b3b&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Which will output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="bat"&gt;http POST https://api.nrfcloud.com/v1/account/certificates Authorization:&amp;quot;Bearer b09f76779f504da08ffea13814024ce545f68b3b&amp;quot;
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Connection: keep-alive
Content-Length: 3594
Content-Type: application/json
Date: Mon, 07 Oct 2019 13:21:19 GMT
Via: 1.1 4f48f90c7cc5834331dc3e65cd576297.cloudfront.net (CloudFront)
X-Amz-Cf-Id: b-pIQ0BhrpaY2QkFeNaGCX2wae7F5SLPUBkexpZOfs9U0puMBZJdJw==
X-Amz-Cf-Pop: OSL50-C1
X-Amzn-Trace-Id: Root=1-5d9b3bcd-fc5d62902b2ffacdfb8092b3;Sampled=0
X-Cache: Miss from cloudfront
x-amz-apigw-id: BMZIKFKmoAMFmsg=
x-amzn-RequestId: 950d3186-681c-4a18-b152-b5017f74afd9

{
    &amp;quot;certificate&amp;quot;: &amp;quot;-----BEGIN CERTIFICATE-----\n[REMOVED]\n-----END CERTIFICATE-----\n&amp;quot;,
    &amp;quot;clientId&amp;quot;: &amp;quot;prod-f1b2cfb2-e82e-4b13-819a-0db2bf5fad69-account&amp;quot;,
    &amp;quot;id&amp;quot;: &amp;quot;[REMOVED]&amp;quot;,
    &amp;quot;privateKey&amp;quot;: &amp;quot;-----BEGIN RSA PRIVATE KEY-----\n[REMOVED]\n-----END RSA PRIVATE KEY-----\n&amp;quot;,
    &amp;quot;publicKey&amp;quot;: &amp;quot;-----BEGIN PUBLIC KEY-----\n[REMOVED]\n-----END PUBLIC KEY-----\n&amp;quot;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Or did you download from your nRF Cloud Account? See image below, which&amp;nbsp;downloads a .json file to import to LTE Link Monitor - Certificate Manager&lt;/p&gt;
&lt;p&gt;&lt;img height="260" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b390b36ea753459799756615431782dc/pastedimage1570522774732v1.png" width="591" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/213737?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 17:55:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab8876c8-85f1-45a6-8c51-95b49b1e21f4</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;Oslash;yvind,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t tried Mosquitto yet, but will do that. My client ID is the following:&amp;nbsp;prod-7215a082-a8f3-4507-a03d-a7e2e0d55387-account&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Joakim Uddenfeldt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/213619?ContentTypeID=1</link><pubDate>Mon, 07 Oct 2019 11:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db8d2f06-22c9-44f6-b941-e0b3c3c0e065</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;&lt;strong&gt;H&lt;/strong&gt;i Joakim,&lt;br /&gt;&lt;br /&gt;Have you tried using &lt;a href="https://mosquitto.org/"&gt;Mosquitto&lt;/a&gt; to confirm the connection?&amp;nbsp; What is the Client ID you are using to connect?&lt;/p&gt;
&lt;p&gt;-Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/213474?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 16:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cbd64b0-b212-493d-b042-806dbdba2298</guid><dc:creator>Joakim U</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&amp;Oslash;yvind,&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:150%;"&gt;&lt;strong&gt;Here is what I have done:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I start by downloading and installing new certificates on my Thingy using these instructions:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-cloud-certificate-update"&gt;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/getting-started-cellular/posts/nrf-cloud-certificate-update&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;After that, I register my Thingy to my nRF account using the GUI on the nRF Cloud website&lt;/p&gt;
&lt;p&gt;I then use&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;the swagger gui to download the MQTT information, such as endpoint and topics using the following curl command&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;curl -X GET &amp;quot;&lt;a href="https://api.nrfcloud.com/v1/account"&gt;&amp;quot;&amp;gt;api.nrfcloud.com/.../account&amp;quot;&lt;/a&gt; -H &amp;quot;accept: application/json&amp;quot; -H &amp;quot;Authorization: Bearer&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;With the following python code, I try to subscribe to the messages that my thingy sends (which I can see in the nRF cloud GUI&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="python"&gt;# Import package
import paho.mqtt.client as mqtt
import ssl
import certifi

#Defining mqtt input
mqttEndpoint = &amp;quot;a2n7tk1kp18wix-ats.iot.us-east-1.amazonaws.com&amp;quot;
mqttTopicPrefix = &amp;quot;prod/7215a082-a8f3-4507-a03d-a7e2e0d55387/&amp;quot;
#topics
gateways = &amp;quot;prod/7215a082-a8f3-4507-a03d-a7e2e0d55387/a/gateways&amp;quot;
connections = &amp;quot;prod/7215a082-a8f3-4507-a03d-a7e2e0d55387/a/connections&amp;quot;
alerts = &amp;quot;prod/7215a082-a8f3-4507-a03d-a7e2e0d55387/a/alerts&amp;quot;
notifications =&amp;quot;prod/7215a082-a8f3-4507-a03d-a7e2e0d55387/a/alerts/notifications&amp;quot;
messagesPrefix = &amp;quot;prod/7215a082-a8f3-4507-a03d-a7e2e0d55387/m&amp;quot;

# Define Variables
MQTT_PORT = 8883
MQTT_KEEPALIVE_INTERVAL = 45
MQTT_TOPIC = &amp;quot;prod/7215a082-a8f3-4507-a03d-a7e2e0d55387/m/&amp;quot;


MQTT_HOST = &amp;quot;a2n7tk1kp18wix-ats.iot.us-east-1.amazonaws.com&amp;quot;
CA_ROOT_CERT_FILE = &amp;quot;root-CA.cert&amp;quot;
THING_CERT_FILE = &amp;quot;certificate.pem&amp;quot;
THING_PRIVATE_KEY = &amp;quot;privatekey.key&amp;quot;

# Define on connect event function
# We shall subscribe to our Topic in this function
def on_connect(mosq, obj, rc):
    mqttc.subscribe(MQTT_TOPIC, 0)

# Define on_message event function. 
# This function will be invoked every time,
# a new message arrives for the subscribed topic 
def on_message(mosq, obj, msg):
	print &amp;quot;Topic: &amp;quot; + str(msg.topic)
	print &amp;quot;QoS: &amp;quot; + str(msg.qos)
	print &amp;quot;Payload: &amp;quot; + str(msg.payload)

def on_subscribe(mosq, obj, mid, granted_qos):
    print(&amp;quot;Subscribed to Topic: &amp;quot; + 
	MQTT_MSG + &amp;quot; with QoS: &amp;quot; + str(granted_qos))

# Initiate MQTT Client
mqttc = mqtt.Client()

# Assign event callbacks
mqttc.on_message = on_message
mqttc.on_connect = on_connect
mqttc.on_subscribe = on_subscribe

# Configure TLS Set
mqttc.tls_set(certfile=THING_CERT_FILE, keyfile=THING_PRIVATE_KEY, cert_reqs=ssl.CERT_REQUIRED, tls_version=ssl.PROTOCOL_TLSv1_2, ciphers=None)


# Connect with MQTT Broker
mqttc.connect(MQTT_HOST, MQTT_PORT, MQTT_KEEPALIVE_INTERVAL)


# Continue monitoring the incoming messages for subscribed topic
mqttc.loop_forever()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, i&amp;#39;m never able to connect successfully? I have tried the same with node-red, but i&amp;#39;m unable to connect using that as well.&lt;/p&gt;
&lt;p&gt;Do you have any idea what I might be doing incorrectly?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Joakim Uddenfeldt&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easiest way to subscribe to MQTT messages from Thingy91 on the nRF Cloud</title><link>https://devzone.nordicsemi.com/thread/213414?ContentTypeID=1</link><pubDate>Fri, 04 Oct 2019 12:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e151f114-a2f3-47b1-a169-3d37c617b1a9</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Joakim,&amp;nbsp;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]The documentation that is found under APIs doesn&amp;#39;t seem to help me, as I&amp;#39;m unable to connect to the broker.[/quote]
&lt;p&gt;I assume you mean&amp;nbsp;&lt;a href="https://nrfcloud.com/#/docs"&gt;nRF Cloud API documentation&lt;/a&gt;, specifically the &lt;a href="https://nrfcloud.com/#/docs/guides/mqtt"&gt;MQTT chapter&lt;/a&gt;?&lt;br /&gt;&lt;br /&gt;Can you share how you are trying to connect?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>