Added preliminary SwitchOS v12 support

Added address and profile functionality

Added address and profile emulation

Updated connection and slowed frequency

Updated API call
This commit is contained in:
Brikwerk 2021-04-10 23:43:52 -07:00
commit a13345b4c8
8 changed files with 279 additions and 58 deletions

View file

@ -11,7 +11,7 @@ import sys
import os
import time
from nxbt import toggle_input_plugin
from nxbt import toggle_clean_bluez
from nxbt import BlueZ
REQUEST_INFO = b'\xA2\x01\x02\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
@ -126,7 +126,7 @@ if __name__ == "__main__":
jc_itr = socket.socket(family=socket.AF_BLUETOOTH,
type=socket.SOCK_SEQPACKET,
proto=socket.BTPROTO_L2CAP)
toggle_input_plugin(False)
toggle_clean_bluez(True)
bt = BlueZ(adapter_path="/org/bluez/hci0")
try:
@ -194,4 +194,4 @@ if __name__ == "__main__":
raise e
finally:
toggle_input_plugin(True)
toggle_clean_bluez(False)