Function otBorderAgentIsActive

Source
pub unsafe extern "C" fn otBorderAgentIsActive(
    aInstance: *mut otInstance,
) -> bool
Expand description

Indicates whether or not the Border Agent service is active and running.

While the Border Agent is active, external commissioner candidates can try to connect to and establish secure DTLS sessions with the Border Agent using PSKc. A connected commissioner can then petition to become a full commissioner.

If OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE is enabled, independent and separate DTLS transport and sessions are used for the ephemeral key. Therefore, the ephemeral key and Border Agent service can be enabled and used in parallel.

@param[in] aInstance A pointer to an OpenThread instance.

@retval TRUE The Border Agent is active. @retval FALSE The Border Agent is not active.