Skip to content

Commit

Permalink
GAP: Add a function clear_discov_results
Browse files Browse the repository at this point in the history
Add a function clear_discov_results to clear
discovery results.

Signed-off-by: Lyle Zhu <[email protected]>
  • Loading branch information
lylezhu2012 committed Jun 13, 2024
1 parent 7c7ba3d commit bb80c47
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions autopts/pybtp/btp/gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,14 @@ def check_discov_results(addr_type=None, addr=None, discovered=True, eir=None, u
return False


def clear_discov_results():
stack = get_stack()

stack.gap.found_devices.data.clear()

return True


def check_scan_rep_and_rsp(report, response):
stack = get_stack()
devices = stack.gap.found_devices.data
Expand Down

0 comments on commit bb80c47

Please sign in to comment.