We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63d3930 + bb8982b commit 1d6bf67Copy full SHA for 1d6bf67
src/NimBLEScan.cpp
@@ -141,7 +141,7 @@ NimBLEScan::NimBLEScan() {
141
142
if (pScan->m_pAdvertisedDeviceCallbacks) {
143
// If not active scanning report the result to the listener.
144
- if(pScan->m_scan_params.passive) {
+ if(pScan->m_scan_params.passive || event->disc.event_type == BLE_HCI_ADV_TYPE_ADV_NONCONN_IND) {
145
pScan->m_pAdvertisedDeviceCallbacks->onResult(advertisedDevice);
146
// Otherwise wait for the scan response so we can report all of the data at once.
147
} else if (event->disc.event_type == BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP) {
0 commit comments