esp_idf_svc::sys

Function otJoinerStart

Source
pub unsafe extern "C" fn otJoinerStart(
    aInstance: *mut otInstance,
    aPskd: *const u8,
    aProvisioningUrl: *const u8,
    aVendorName: *const u8,
    aVendorModel: *const u8,
    aVendorSwVersion: *const u8,
    aVendorData: *const u8,
    aCallback: Option<unsafe extern "C" fn(_: u32, _: *mut c_void)>,
    aContext: *mut c_void,
) -> u32
Expand description

Enables the Thread Joiner role.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aPskd A pointer to the PSKd. @param[in] aProvisioningUrl A pointer to the Provisioning URL (may be NULL). @param[in] aVendorName A pointer to the Vendor Name (may be NULL). @param[in] aVendorModel A pointer to the Vendor Model (may be NULL). @param[in] aVendorSwVersion A pointer to the Vendor SW Version (may be NULL). @param[in] aVendorData A pointer to the Vendor Data (may be NULL). @param[in] aCallback A pointer to a function that is called when the join operation completes. @param[in] aContext A pointer to application-specific context.

@retval OT_ERROR_NONE Successfully started the Joiner role. @retval OT_ERROR_BUSY The previous attempt is still on-going. @retval OT_ERROR_INVALID_ARGS @p aPskd or @p aProvisioningUrl is invalid. @retval OT_ERROR_INVALID_STATE The IPv6 stack is not enabled or Thread stack is fully enabled.