Skip to content

Commit

Permalink
device name based bt backend detection
Browse files Browse the repository at this point in the history
  • Loading branch information
salman2135 committed Apr 5, 2024
1 parent b31b629 commit cca3bf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/explorepy/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def __init__(self, callback, mode='device', debug=True):
def start_streaming(self, device_name, mac_address):
"""Start streaming data from Explore device"""
self.device_name = device_name
if not device_name[-4:].isalpha():
explorepy.set_bt_interface('sdk')
if explorepy.get_bt_interface() == 'sdk':
from explorepy.btcpp import SDKBtClient
self.stream_interface = SDKBtClient(device_name=device_name, mac_address=mac_address)
Expand Down

0 comments on commit cca3bf1

Please sign in to comment.