<?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>MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59613/mqtt-integration-with-losant-iot</link><description>Good afternoon, 
 First of all, I hope that you are all well and are able to work from home, regardless of the government instructions of your country of residence. 
 My question is related to an experiment we are currently running using the Losant IoT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Apr 2020 08:45:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59613/mqtt-integration-with-losant-iot" /><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/244355?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 08:45:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd5bdec-44e8-412c-84c6-db0fd1b17f26</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;One thing you can try to see if you get any messages from the device to the cloud (even though they do not show in the GUI), is to use the REST API to fetch any messages.&lt;/p&gt;
&lt;p&gt;Using Httpie, the command to get the ten latest messages sent this year would be:&lt;/p&gt;
&lt;div style="font-family:&amp;#39;Consolas&amp;#39;;font-size:13px;margin:0;text-align:start;text-indent:0px;"&gt;&lt;span style="background-color:#272822;color:#cacaca;"&gt;http GET &lt;a href="https://api.nrfcloud.com/v1/messages"&gt;api.nrfcloud.com/.../messages&lt;/a&gt; Authorization:&amp;quot;Bearer &amp;lt;your API token&amp;gt;&amp;quot; inclu&lt;/span&gt;&lt;span style="background-color:#272822;color:#cacaca;"&gt;siveStart==&amp;quot;2020-01-01T01:01:01.001Z&amp;quot; exclusiveEnd==&amp;quot;2020-04-14T01:01:01.001Z&amp;quot; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/244167?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2020 10:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe8d9d6-3b1d-4690-85be-4fcd2824e102</guid><dc:creator>adaxem</dc:creator><description>&lt;p&gt;Hi Didrik,&lt;/p&gt;
&lt;p&gt;Indeed, I am getting only the loading diamond and can sometimes actually get the whole Cards page to load by refreshing, but not consistently. However, I have never actually managed to get a live&amp;nbsp;reading (for temperature or pressure) displayed on the Cards page, even though the Thingy:52 is actually transmitting.&lt;/p&gt;
&lt;p&gt;Double-checked the topics I am subscribing to on the Losant integration, unfortunately they seem to be correct.&lt;/p&gt;
&lt;p&gt;Is there any other way I could check that the MQTT stream can be subscribed to? Any other software or utility?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/243619?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 11:46:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d1b0a30-0132-4995-af11-7e9ee863762b</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="adaxem"]It is also worth noting that even though the Thingy:52 is transmitting data for all environmental sensors (checked on the Thingy iOS app and nRF Cloud Gateway logs), the Cards page on nRF Connect for Cloud is still unaccessible (although both the device and gateway are displayed as being connected).[/quote]
&lt;p&gt;If you only get the loading diamond, have you tried to refresh the page?&lt;/p&gt;
&lt;p&gt;Are you subscribing to the right topic?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/243444?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 16:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6840742-4863-481f-bafc-3662b8bf72eb</guid><dc:creator>adaxem</dc:creator><description>&lt;p&gt;Thank you for this additional information Didrik.&lt;/p&gt;
&lt;p&gt;I was indeed downloading the certificates from the web UI, so followed your suggestion and got the certificates using the POST request to the /account/certificates endpoint, then formatted them correctly using the Certificate manager of nRF Connect for Desktop and entered all these new details to Losant.&lt;/p&gt;
&lt;p&gt;However, Losant is still unable to subscribe to the MQTT stream for my Thingy:52, although I am not receiving any error messages. Please note that I am not trying to add the Thingy:52 as a Device to Losant, but rather have Losant subscribe to the MQTT stream through the Integrations functionality of Losant (&lt;a href="https://docs.losant.com/applications/integrations/"&gt;https://docs.losant.com/applications/integrations/&lt;/a&gt;) which allows to connect Losant to external MQTT brokers (I assume nRF Cloud plays this role in the setup we are discussing).&lt;/p&gt;
&lt;p&gt;It is also worth noting that even though the Thingy:52 is transmitting data for all environmental sensors (checked on the Thingy iOS app and nRF Cloud Gateway logs), the Cards page on nRF Connect for Cloud is still unaccessible (although both the device and gateway are displayed as being connected).&lt;/p&gt;
&lt;p&gt;I&amp;#39;d be grateful if you have any other suggestions regarding how to proceed further,&amp;nbsp;any other way&amp;nbsp;(apart from Losant) to check that the&amp;nbsp;MQTT stream is actually accessible and a possible explanation for the environmental Cards not being loaded on nRF Connect for Cloud.&lt;/p&gt;
&lt;p&gt;Thank you once more for all your assistance, stay safe and have a nice weekend &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/243132?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2020 09:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa39db29-ba17-4573-8c02-528b4524dd2d</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="adaxem"]This leads me to believe I might be doing something wrong before downloading the device certificates from nRF Connect for Cloud, i.e. perhaps I am supplying a wrong Device ID or PIN/HWID. What should these values be?[/quote]
&lt;p&gt;&amp;nbsp;Are you getting the certificates from the web UI? I think you will then only get certificates for &amp;quot;generic&amp;quot; devices. which are not able to listen to the traffic of other &amp;quot;generic&amp;quot; devices.&lt;/p&gt;
&lt;p&gt;Instead, if I have understood this correctly, you need to add Losant as an &amp;quot;account device&amp;quot;. You can get the certificates and device ID for an &amp;quot;account device&amp;quot; by sending a POST request to the /account/certificates endpoint.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="adaxem"]Also, it is worth noting that although the Thingy:52 is properly connected to the nRF Cloud Gateway on my iOS device, that both the gateway and device are displayed on nRF Connect for Cloud as being online and that the nRF Cloud Gateway logs show that the Thingy:52 is transmitting rssi values every minute, nRF Connect for Cloud cannot display the cards for the device (i.e. the loader is displayed endlessly and the cards screen never loads).[/quote]
&lt;p&gt;&amp;nbsp;Are the relevant services configured to send data on the Thingy? If the services has been disabled from the Thingy-app, I don&amp;#39;t think they will show up in nRF Cloud.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/242751?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 15:12:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8430970-ff8d-491d-af92-674efaca4a97</guid><dc:creator>adaxem</dc:creator><description>&lt;p&gt;Many thanks for your help once again Didrik.&lt;/p&gt;
&lt;p&gt;Continuing the discussion thread here, as I was able to get past the Losant error message by following your suggestion and using nRF Connect for Desktop to properly format the certificates and private key.&lt;/p&gt;
&lt;p&gt;However, although all details are now supplied correctly, Losant is unable to connect to the MQTT stream.&lt;/p&gt;
&lt;p&gt;This leads me to believe I might be doing something wrong before downloading the device certificates from nRF Connect for Cloud, i.e. perhaps I am supplying a wrong Device ID or PIN/HWID. What should these values be?&lt;/p&gt;
&lt;p&gt;Also, it is worth noting that although the Thingy:52 is properly connected to the nRF Cloud Gateway on my iOS device, that both the gateway and device are displayed on nRF Connect for Cloud as being online and that the nRF Cloud Gateway logs show that the Thingy:52 is transmitting rssi values every minute, nRF Connect for Cloud cannot display the cards for the device (i.e. the loader is displayed endlessly and the cards screen never loads).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/242736?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 14:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da9a05de-792b-4868-9695-e0f970ca6053</guid><dc:creator>adaxem</dc:creator><description>&lt;p&gt;I just copied and pasted the certificate and key text, including the \n escape characters, which might as well be the cause of the error message.&lt;/p&gt;
&lt;p&gt;Will follow your suggestion and post back my findings.&lt;/p&gt;
&lt;p&gt;Thank you once again Didrik, stay safe!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/242668?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2020 11:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b884f27-e5be-447a-99aa-f2bc1b5e6787</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Ok, I think I understand what you mean now.&lt;/p&gt;
&lt;p&gt;As for the error you get, how did you provide the certificates to the integration script?&lt;/p&gt;
&lt;p&gt;You have to replace the \n escape characters with actual newlines for the keys to be &amp;quot;proper&amp;quot; .pem keys. One quick way to do this is to save the downloaded json as a file, then use the &amp;quot;Link Monitor&amp;quot; application in nRF Connect for Desktop, switch to the &amp;quot;Certificate manager&amp;quot; tab, and load the certificates from the json file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/242452?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 13:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06ecc3b5-7c9c-43b4-af14-ecbfafff1bc5</guid><dc:creator>adaxem</dc:creator><description>&lt;p&gt;Thank you for your prompt reply Didrik. I have now edited my original post to remove all certificate and private key information.&lt;/p&gt;
&lt;p&gt;I will try to rephrase my question in order to give you a better understanding of the problem.&lt;/p&gt;
&lt;p&gt;In order to setup an integration on the Losant IoT platform, a specific set of information has to be provided, as detailed in the relevant documentation:&amp;nbsp;&lt;a href="https://docs.losant.com/applications/integrations/"&gt;https://docs.losant.com/applications/integrations/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have already followed these instructions to successfully&amp;nbsp;subscribe to another MQTT stream setup by my colleagues using a different set of sensors.&lt;/p&gt;
&lt;p&gt;By following these instructions and the relevant MQTT documentation of the nrfcloud.com platform, I believe I am supplying the appropriate information to Losant in order to create the MQTT subscription (i.e. make Losant subscribe to the MQTT stream setup by nrfcloud.com).&lt;/p&gt;
&lt;p&gt;Is that accurate and feasible? Isn&amp;#39;t nrfcloud.com creating an MQTT stream when a Thingy:52 is connected to it via a gateway (my iOS device in this instance)? Am I missing some step and receiving the error message from Losant as a result?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/242388?ContentTypeID=1</link><pubDate>Mon, 30 Mar 2020 11:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39de14c4-4101-4d46-b485-46326aef9bc6</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;First of all, you should &lt;strong&gt;never&lt;/strong&gt; post your certificates, and especially not your private key. Especially not in a public ticket.&lt;/p&gt;
&lt;p&gt;You can upload json files by zipping them first, then upload the zipped file/folder.&lt;/p&gt;
&lt;p&gt;When it comes to your actual problem, I am not quite sure I understand what your problem is.&lt;/p&gt;
&lt;p&gt;What does the nRF Cloud certificates have to do Losant?&lt;/p&gt;
&lt;p&gt;What file are you (or the library/script) provide to openssl? Is the file in the expected format?&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><item><title>RE: MQTT integration with Losant IoT</title><link>https://devzone.nordicsemi.com/thread/242183?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 20:38:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a795a15-eede-4f1b-9901-f97c2b119c50</guid><dc:creator>adaxem</dc:creator><description>&lt;p&gt;PS. Sorry, it seems that I am unable to attach JSON files, so please suggest an alternative way of sending this data through.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>