<?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>Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95421/unable-to-combine-gnss-and-mqtt-sample-together</link><description>Dear Nordic team, 
 I have successfully run gnss sample and mqtt_simple sample separately. The next step I am going to do is to send location data from nRF9160 to the mqtt broker, so I am trying to combine the two samples together. What I have done is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Jan 2023 13:08:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95421/unable-to-combine-gnss-and-mqtt-sample-together" /><item><title>RE: Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/thread/404320?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 13:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0374c03d-698d-424a-99dc-273fe90ee7c0</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I tried to enable both CONFIG_MQTT_SIMPLE_LOG_LEVEL and CONFIG_GNSS_SAMPLE_LOG_LEVEL and I get the error;&lt;/p&gt;
&lt;p&gt;error: redefinition of &amp;#39;__log_current_const_data&amp;#39;&lt;br /&gt; 395 | __log_current_const_data __unused = \&lt;br /&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~&lt;/p&gt;
&lt;p&gt;so looks like it isn&amp;#39;t possible, and you need to remove everything that has to do with CONFIG_GNSS_SAMPLE_LOG_LEVEL from the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/thread/404316?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2023 13:03:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96fa6966-a78a-4a88-a5e9-ff4023fd0bbe</guid><dc:creator>Hakon</dc:creator><description>[quote user="yeo"]May I know how to solve this issue?[/quote]
&lt;p&gt;I believe these are the lines you need to change;&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/pastedimage1673442143101v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if there is anyway you can have CONFIG_MQTT_SIMPLE_LOG_LEVEL and CONFIG_GNSS_SAMPLE_LOG_LEVEL defined at the same time. You will need to test this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/thread/403694?ContentTypeID=1</link><pubDate>Sun, 08 Jan 2023 14:13:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e2e880b-4667-47e6-9507-2c8b56393faa</guid><dc:creator>yeo</dc:creator><description>&lt;p&gt;Hi, here is the latest update. I have tried to modify my files and this is the problem that I am facing.&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/pastedimage1673187193664v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1106.mqtt_5F00_gnss.zip"&gt;devzone.nordicsemi.com/.../1106.mqtt_5F00_gnss.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/thread/403692?ContentTypeID=1</link><pubDate>Sun, 08 Jan 2023 13:53:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ceb0239-4c48-43bd-a44e-01306a81e259</guid><dc:creator>yeo</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/thread/403688?ContentTypeID=1</link><pubDate>Sun, 08 Jan 2023 08:21:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a39e7d72-d3ce-4969-8797-cbcb39ee1c22</guid><dc:creator>yeo</dc:creator><description>&lt;p&gt;Hi, after adding the Kconfig options, I am currently facing this issue, which is&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_GNSS_SAMPLE_LOG_LEVEL undefined.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;May I know how to solve this issue?&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/pastedimage1673166030298v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/thread/403667?ContentTypeID=1</link><pubDate>Sat, 07 Jan 2023 03:55:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85e8e25d-038d-427c-8eaf-79ca668879cc</guid><dc:creator>yeo</dc:creator><description>&lt;p&gt;I am currenly using nrf connect in Visual Studio Code. May I ask where can I find the Kconfig file?&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/pastedimage1673063746905v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to combine gnss and mqtt sample together</title><link>https://devzone.nordicsemi.com/thread/403584?ContentTypeID=1</link><pubDate>Fri, 06 Jan 2023 13:05:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c443dc6-3968-4b32-83ae-88a6ce90fa17</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;the GNSS sample has some local Kconfig options that are left out of your build. That&amp;#39;s why you get the error message. The kconfig is located &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/nrf9160/gnss/Kconfig#L72"&gt;here&lt;/a&gt;. You need to find a way to incorporate these kconfig options into your build.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>