<?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>TTL setting in nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120884/ttl-setting-in-nrf52840</link><description>Hello, 
 I want to set my TTL value in a node (nrf52840 dongle) that i use as a relay node. 
 In prj.conf file I set the node in this way: 
 CONFIG_BT_MESH_RELAY=y 
 CONFIG_BT_MESH_RELAY_RETRANSMIT_COUNT=2 
 What instruction can I insert for setting TTL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 23 Apr 2025 10:41:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120884/ttl-setting-in-nrf52840" /><item><title>RE: TTL setting in nrf52840</title><link>https://devzone.nordicsemi.com/thread/532562?ContentTypeID=1</link><pubDate>Wed, 23 Apr 2025 10:41:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e79b7ff-b13e-4a60-b05b-d731a6c47b1d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;CONFIG_BT_MESH_DEFAULT_TTL. By default, this is set to 7, as you can see in NCS\zephyr\subsys\bluetooth\mesh\kconfig:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;config BT_MESH_DEFAULT_TTL
	int &amp;quot;Default TTL value&amp;quot;
	default 7
	range 0 128
	help
	  Controls the default TTL value for outgoing messages. Can be changed
	  through runtime configuration.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>