pub unsafe extern "C" fn otChannelMonitorSetEnabled(
aInstance: *mut otInstance,
aEnabled: bool,
) -> otError
Expand description
Enables or disables the Channel Monitoring operation.
Once operation starts, any previously collected data is cleared. However, after operation is disabled, the previous collected data is still valid and can be read.
@note OpenThread core internally enables or disables the Channel Monitoring operation when the IPv6 interface is
brought up or down, for example in a call to otIp6SetEnabled()
.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aEnabled TRUE to enable/start Channel Monitoring operation, FALSE to disable/stop it.
@retval OT_ERROR_NONE Channel Monitoring state changed successfully @retval OT_ERROR_ALREADY Channel Monitoring is already in the same state.