Skip to content

Commit

Permalink
scanner: stop active scanning when done
Browse files Browse the repository at this point in the history
  • Loading branch information
sultanqasim committed Sep 11, 2024
1 parent 6cda3db commit 84b1ec0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python_cli/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def main():
elif isinstance(msg, PacketMessage):
handle_packet(msg)

# Stop active scanning
hw.setup_sniffer()

print("\n\nScan Results:")
for a in sorted(advertisers.keys(), key=lambda k: advertisers[k].rssi_avg, reverse=True):
print("="*80)
Expand Down

0 comments on commit 84b1ec0

Please sign in to comment.