TTL setting in nrf52840

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?

And which is the default value of TTL if I don't set my TTL value?

Thanks in advance

Parents
  • Hello,

    You can use CONFIG_BT_MESH_DEFAULT_TTL. By default, this is set to 7, as you can see in NCS\zephyr\subsys\bluetooth\mesh\kconfig:

    config BT_MESH_DEFAULT_TTL
    	int "Default TTL value"
    	default 7
    	range 0 128
    	help
    	  Controls the default TTL value for outgoing messages. Can be changed
    	  through runtime configuration.

    Best regards,

    Edvin

Reply
  • Hello,

    You can use CONFIG_BT_MESH_DEFAULT_TTL. By default, this is set to 7, as you can see in NCS\zephyr\subsys\bluetooth\mesh\kconfig:

    config BT_MESH_DEFAULT_TTL
    	int "Default TTL value"
    	default 7
    	range 0 128
    	help
    	  Controls the default TTL value for outgoing messages. Can be changed
    	  through runtime configuration.

    Best regards,

    Edvin

Children
No Data
Related