pub unsafe extern "C" fn otCommissionerStart(
aInstance: *mut otInstance,
aStateCallback: otCommissionerStateCallback,
aJoinerCallback: otCommissionerJoinerCallback,
aCallbackContext: *mut c_void,
) -> otError
Expand description
Enables the Thread Commissioner role.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aStateCallback A pointer to a function that is called when the commissioner state changes. @param[in] aJoinerCallback A pointer to a function that is called with a joiner event occurs. @param[in] aCallbackContext A pointer to application-specific context.
@retval OT_ERROR_NONE Successfully started the Commissioner service. @retval OT_ERROR_ALREADY Commissioner is already started. @retval OT_ERROR_INVALID_STATE Device is not currently attached to a network.