mirror of
https://github.com/espressif/openthread.git
synced 2026-07-15 16:44:09 +00:00
Update otThreadDiscover() to include input argument for setting Joiner flag. (#1658)
This commit is contained in:
committed by
Jonathan Hui
parent
c73ba27878
commit
f392421d2c
@@ -678,10 +678,10 @@ bool otThreadIsSingleton(otInstance *aInstance)
|
||||
return aInstance->mThreadNetif.GetMle().IsSingleton();
|
||||
}
|
||||
|
||||
ThreadError otThreadDiscover(otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId,
|
||||
ThreadError otThreadDiscover(otInstance *aInstance, uint32_t aScanChannels, uint16_t aPanId, bool aJoiner,
|
||||
otHandleActiveScanResult aCallback, void *aCallbackContext)
|
||||
{
|
||||
return aInstance->mThreadNetif.GetMle().Discover(aScanChannels, aPanId, false, aCallback, aCallbackContext);
|
||||
return aInstance->mThreadNetif.GetMle().Discover(aScanChannels, aPanId, aJoiner, aCallback, aCallbackContext);
|
||||
}
|
||||
|
||||
bool otThreadIsDiscoverInProgress(otInstance *aInstance)
|
||||
|
||||
Reference in New Issue
Block a user