Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
Ignore all HTC, Apple, Google and Unknown devices, this elimates trac…
Browse files Browse the repository at this point in the history
…kers and other stuff showing up that's not needed
  • Loading branch information
RaithSphere committed Nov 14, 2020
1 parent f129a7d commit c5ba2fd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion HRM.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,14 @@ def writeout(hr, hrv, battery, contact):

async def searchbt():
devices = await discover()

""" Ignore HTC or Unknown Devices """
Devicelist = ["HTC", "Unknown", "Apple", "Google"]

for d in devices:
log.info(d)
dx = str(d)
if not any(x in dx for x in Devicelist):
log.info(dx)


def http(webport):
Expand Down

0 comments on commit c5ba2fd

Please sign in to comment.