<?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>How to disable location services in asset tracker with lwm2m</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112218/how-to-disable-location-services-in-asset-tracker-with-lwm2m</link><description>Hi All, 
 I&amp;#39;m trying to fully disable all location services with the asset tracker in v2.6.1 while using lwm2m (so I have the lwm2m overlay enabled in the build settings). 
 However, as you can see below, setting CONFIG_LOCATION=n in my prj.conf does</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Jun 2024 11:11:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112218/how-to-disable-location-services-in-asset-tracker-with-lwm2m" /><item><title>RE: How to disable location services in asset tracker with lwm2m</title><link>https://devzone.nordicsemi.com/thread/491076?ContentTypeID=1</link><pubDate>Thu, 27 Jun 2024 11:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f437c51-95e0-4cc4-9176-eb97d8f87550</guid><dc:creator>hubert_11</dc:creator><description>&lt;p&gt;Thanks, that indeed solved it.&lt;br /&gt;&lt;br /&gt;I case anybody else encounters this same use case, I had to change these lines to n too in the lwm2m overlay:&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LWM2M_CLIENT_UTILS_GNSS_ASSIST_OBJ_SUPPORT&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LWM2M_CLIENT_UTILS_LOCATION_ASSIST_AGNSS&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_LWM2M_CLIENT_UTILS_LOCATION_ASSIST_CELL&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable location services in asset tracker with lwm2m</title><link>https://devzone.nordicsemi.com/thread/489648?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2024 09:02:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:771c4911-e4a1-4732-ad87-b7fc18ff75f0</guid><dc:creator>Kenneth</dc:creator><description>[quote user="hubert_11"]Furthermore, if I try to add&amp;nbsp;&lt;span&gt;CONFIG_LOCATION_MODULE=n to my prj.conf it throws this error:&lt;/span&gt;[/quote]
&lt;p&gt;Looks like this did the job, the remaining problem now is that you still have code that try to use the location api (e.g.&amp;nbsp;undefined reference to `nrf_cloud_agnss_process&amp;#39;) so you need to comment or remove those.&lt;/p&gt;
&lt;p&gt;Kenenth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable location services in asset tracker with lwm2m</title><link>https://devzone.nordicsemi.com/thread/489567?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 14:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff7524f0-462d-4874-8fc1-afcc59396d3e</guid><dc:creator>hubert_11</dc:creator><description>&lt;p&gt;I don&amp;#39;t think so, I can&amp;#39;t find them anywhere in my code. And I&amp;#39;m using just the unaltered config files for the asset tracker expect for the inclusion of the lwm2m overlay.&lt;br /&gt;&lt;br /&gt;Furthermore, if I try to add&amp;nbsp;&lt;span&gt;CONFIG_LOCATION_MODULE=n to my prj.conf it throws this error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;/opt/nordic/ncs/toolchains/580e4ef81c/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: modules/nrf/subsys/net/lib/lwm2m_client_utils/lib..__nrf__subsys__net__lib__lwm2m_client_utils.a(gnss_assistance_obj.c.obj): in function `gnss_assist_write_agnss&amp;#39;:
/opt/nordic/ncs/v2.6.1/nrf/subsys/net/lib/lwm2m_client_utils/lwm2m/gnss_assistance_obj.c:116: undefined reference to `nrf_cloud_agnss_process&amp;#39;
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.&lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;and&amp;nbsp;it can&amp;#39;t find&amp;nbsp;CONFIG_MOSH_LOCATION=n:&lt;br /&gt;prj.conf:117: warning: attempt to assign the value &amp;#39;n&amp;#39; to the undefined symbol MOSH_LOCATION&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable location services in asset tracker with lwm2m</title><link>https://devzone.nordicsemi.com/thread/489557?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 13:51:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72bf211c-a4ed-4b9a-8732-0afe1b5e7c10</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Good point, I was hoping it threw a bit more information.&lt;/p&gt;
&lt;p&gt;If I search through ncs for the following:&lt;/p&gt;
&lt;p&gt;select LOCATION&lt;/p&gt;
&lt;p&gt;I can for instance find the following results:&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/pastedimage1718805063227v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Is it possible that you have enabled CONFIG_MOSH_LOCATION or CONFIG_LOCATION_MODULE?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable location services in asset tracker with lwm2m</title><link>https://devzone.nordicsemi.com/thread/489503?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 12:22:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd2d77ad-56d5-456e-9df8-7ca9ee01ba92</guid><dc:creator>hubert_11</dc:creator><description>&lt;p&gt;Thank you for the reply. I do indeed see that warning in the build output, but it doesn&amp;#39;t really help me to narrow down the cause:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: LOCATION (defined at /opt/nordic/ncs/v2.6.1/nrf/lib/location/Kconfig:7) was assigned the
value &amp;#39;n&amp;#39; but got the value &amp;#39;y&amp;#39;. See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_LOCATION and/or look up LOCATION in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;From the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/asset_tracker_v2/doc/location_module.html"&gt;documentation&lt;/a&gt; on the location module it seems that just setting the CONFIG_LOCATION to n would be enough.&lt;br /&gt;&lt;br /&gt;Is there a way to find out which code/kconfig setting makes it go back to y?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to disable location services in asset tracker with lwm2m</title><link>https://devzone.nordicsemi.com/thread/489493?ContentTypeID=1</link><pubDate>Wed, 19 Jun 2024 11:30:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e508c55-d554-4d20-8e56-95b082383461</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you set&amp;nbsp;&lt;span&gt;CONFIG_LOCATION=n in your prj.conf, and it is still set in the application, then you should get a warning during build where is says that the config option was set to&amp;nbsp;CONFIG_LOCATION=y during building, I suggest to look at the build output to understand why it was still set to y.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>