Programmatically set device role for Thread node


My issue is about setting the role for a thread device from my program, I'm programming the device using Segger Embedded Studio and the last SDK for Thread and Zigbee.

I want to know if there is a function for setting the device role. I've readed in another entry in this forum about the function otThreadSetRouterRoleEnabled(), but it seems that is no longer supported in recent versions of the SDK.

Thanks in advance!

  • Hi Morenza,

    This is correct. There is a discussion about OpenThead device role in openthread users group. Thread Specification does not currently allow a given device to force itself to become a router. You will find how the role of an OT device is decided from this reply.

    Best regards,