[−][src]Function openthread_sys::otThreadDiscover
pub unsafe extern "C" fn otThreadDiscover(
aInstance: *mut otInstance,
aScanChannels: u32,
aPanId: u16,
aJoiner: bool,
aEnableEui64Filtering: bool,
aCallback: otHandleActiveScanResult,
aCallbackContext: *mut c_void
) -> otError
This function starts a Thread Discovery scan.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aScanChannels A bit vector indicating which channels to scan (e.g. OT_CHANNEL_11_MASK). @param[in] aPanId The PAN ID filter (set to Broadcast PAN to disable filter). @param[in] aJoiner Value of the Joiner Flag in the Discovery Request TLV. @param[in] aEnableEui64Filtering TRUE to filter responses on EUI-64, FALSE otherwise. @param[in] aCallback A pointer to a function called on receiving an MLE Discovery Response or scan completes. @param[in] aCallbackContext A pointer to application-specific context.
@retval OT_ERROR_NONE Accepted the Thread Discovery request. @retval OT_ERROR_BUSY Already performing an Thread Discovery.