Skip to content

Commit

Permalink
Set filter_duplicates to 0 in NimBLEScan constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
h2zero committed Jun 26, 2020
1 parent e45ee66 commit aaf42f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NimBLEScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ NimBLEScan::NimBLEScan() {
m_scan_params.itvl = 0; // This is defined as the time interval from when the Controller started its last LE scan until it begins the subsequent LE scan. (units=0.625 msec)
m_scan_params.window = 0; // The duration of the LE scan. LE_Scan_Window shall be less than or equal to LE_Scan_Interval (units=0.625 msec)
m_scan_params.limited = 0; // If set, only discover devices in limited discoverable mode.
m_scan_params.filter_duplicates = 1; // If set, the controller ignores all but the first advertisement from each device.
m_scan_params.filter_duplicates = 0; // If set, the controller ignores all but the first advertisement from each device.
m_pAdvertisedDeviceCallbacks = nullptr;
m_stopped = true;
m_wantDuplicates = false;
Expand Down

1 comment on commit aaf42f8

@h2zero
Copy link
Owner Author

@h2zero h2zero commented on aaf42f8 Jun 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #75

Please sign in to comment.