Function openthread_sys::otTrelSetEnabled

source ·
pub unsafe extern "C" fn otTrelSetEnabled(
    aInstance: *mut otInstance,
    aEnable: bool,
)
Expand description

Enables or disables TREL operation.

When @p aEnable is true, this function initiates an ongoing DNS-SD browse on the service name “_trel._udp” within the local browsing domain to discover other devices supporting TREL. Device also registers a new service to be advertised using DNS-SD, with the service name is “_trel._udp” indicating its support for TREL. Device is then ready to receive TREL messages from peers.

When @p aEnable is false, this function stops the DNS-SD browse on the service name “_trel._udp”, stops advertising TREL DNS-SD service, and clears the TREL peer table.

@note By default the OpenThread stack enables the TREL operation on start.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aEnable A boolean to enable/disable the TREL operation.