<?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>Nothing received when attempting to get WIFI location data using MQTT.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/103671/nothing-received-when-attempting-to-get-wifi-location-data-using-mqtt</link><description>Hello, 
 When using MQTT I am not receiving anything on the topic: 
 prod/${team-id}/m/d/${client-id}/wifi/r 
 when I send wifi data to the topic: 
 prod/${team-id}/m/d/${client-id}/d2c/wifi 
 I am doing this from terminal so the command I use is 
 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Sep 2023 22:50:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/103671/nothing-received-when-attempting-to-get-wifi-location-data-using-mqtt" /><item><title>RE: Nothing received when attempting to get WIFI location data using MQTT.</title><link>https://devzone.nordicsemi.com/thread/447833?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2023 22:50:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2790c08b-e995-40e0-9f81-13a2f2cce6cc</guid><dc:creator>Lincoln Thomas</dc:creator><description>&lt;p&gt;For the record, the document has been fixed (&lt;a href="https://docs.nrfcloud.com/APIs/MQTT/Topics.html#publish-topics-d2c-for-location-services)."&gt;docs.nrfcloud.com/.../Topics.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nothing received when attempting to get WIFI location data using MQTT.</title><link>https://devzone.nordicsemi.com/thread/446145?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 19:11:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2b9f5d-2432-45e3-99c1-073848992525</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Changing the topic to&amp;nbsp;&lt;/p&gt;
[quote userid="85072" url="~/f/nordic-q-a/103671/nothing-received-when-attempting-to-get-wifi-location-data-using-mqtt/446132"]prod/${team-id}/m/d/${client-id}/d2c[/quote]
&lt;p&gt;worked for me.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;br /&gt;leo_nam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nothing received when attempting to get WIFI location data using MQTT.</title><link>https://devzone.nordicsemi.com/thread/446132?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 17:49:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b69003e2-c18f-4a02-9351-876f89762ef8</guid><dc:creator>Lincoln Thomas</dc:creator><description>&lt;p&gt;Hi Leo_nam,&lt;/p&gt;
&lt;p&gt;Our apologies, you&amp;#39;ve encountered an error in our documentation which we will correct as soon as possible. The suffixes in that &amp;quot;D2C&amp;quot; table (&lt;a href="https://docs.nrfcloud.com/APIs/MQTT/Topics.html"&gt;https://docs.nrfcloud.com/APIs/MQTT/Topics.html&lt;/a&gt;) should not be there. The correct topic you should publish on, instead of &lt;span style="font-family:courier new, courier;"&gt;.../d2c/wifi&lt;/span&gt; is:&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;prod/${team-id}/m/d/${client-id}/d2c&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;(no &lt;span style="font-family:courier new, courier;"&gt;/wifi&lt;/span&gt; suffix)&lt;/p&gt;
&lt;p&gt;The suffixes in the table above it, where you subscribe, are correct. So you are correctly subscribing to &lt;span style="font-family:courier new, courier;"&gt;prod/${team-id}/m/d/${client-id}/wifi/r&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let us know if this works for you.&lt;/p&gt;
&lt;p&gt;-Lincoln&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nothing received when attempting to get WIFI location data using MQTT.</title><link>https://devzone.nordicsemi.com/thread/446094?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2023 14:14:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e89f6cf-b3db-49f3-ba12-5e903f4be612</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;A JWT generated using the &amp;quot;device&amp;quot; credentials (client-id, private/public key) allow me to use location services via the curl command from terminal (i.e. REST) and receive location data based on the wifi information I send. It just doesn&amp;#39;t seem to work over MQTT. I&amp;#39;d prefer to use MQTT, that way I don&amp;#39;t have to generate a JWT during runtime on the non-nrf device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Am I subscribed to the wrong MQTT topic? I am using &lt;span&gt;prod/${team-id}/m/d/${client-id}/wifi/r&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I can also see that my information is being sent to nrfCloud using the mosquitto_rr command via the &amp;quot;Server to nrfCloud (c2a)&amp;quot; terminal in the nrfCloud portal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="height:171px;max-height:171px;max-width:167px;" height="233" src="https://devzone.nordicsemi.com/resized-image/__size/334x342/__key/communityserver-discussions-components-files/4/pastedimage1694700472199v1.png" width="166" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Although I do have to look it up as historical data, otherwise all I see when I use mosquitto_rr is:&amp;nbsp;&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/pastedimage1694700573768v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;br /&gt;leo_nam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nothing received when attempting to get WIFI location data using MQTT.</title><link>https://devzone.nordicsemi.com/thread/445642?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 13:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8c6ce13-9b41-4dcd-9164-07cf2e164339</guid><dc:creator>leo_nam</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am not&amp;nbsp;using the nrfConnectSDK nor am I using a sample or a nordic device. I am using mosquitto commands on a terminal in Linux which is acting as a client to send wifi information to nrf cloud and receive location info from nrf cloud.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Private Key and CSR were generated using openssl after which client certificates were generated and the &amp;quot;device&amp;quot; was added to my nrfcloud account.&lt;/p&gt;
&lt;p&gt;I am doing this to confirm how nrfCloud Wifi Locationing works with MQTT before I start writing code to put on to my device which is not a nordic device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the output from terminal after putting in my mosquitto_rr command:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Client ${client-id} sending CONNECT
Client ${client-id} received CONNACK (0)
Client ${client-id} sending SUBSCRIBE (Mid: 1, Topic: prod/${team-id}/m/d/${client-id}/wifi/r, QoS: 0, Options: 0x00)
Client ${client-id} received SUBACK
Client ${client-id} sending PUBLISH (d0, q0, r0, m2, &amp;#39;prod/${team-id}/m/d/${client-id}/d2c/wifi&amp;#39;, ... (152 bytes))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I was expecting to receive an error message because I was unsure of the formatting for the wifi info being sent.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The link:&amp;nbsp;&lt;a href="https://docs.nrfcloud.com/APIs/MQTT/Topics.html#d2c-topics"&gt;https://docs.nrfcloud.com/APIs/MQTT/Topics.html#d2c-topics&lt;/a&gt;&amp;nbsp;provides three different examples so I chose to use the one with the simplest formatting.&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;leonam&lt;/p&gt;
&lt;p&gt;Edit: added ${} to show that I&amp;#39;m not actually using &amp;#39;client-id&amp;#39; and &amp;#39;team-id&amp;#39; in my function calls&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nothing received when attempting to get WIFI location data using MQTT.</title><link>https://devzone.nordicsemi.com/thread/445615?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2023 11:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:844714f3-c5e1-4851-a275-4d971447b841</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;are you able to provide more information on what you are trying to achieve? What version of nRF Connect SDK are you running, and what sample are you running on your device? What does the log output on the device look like?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>