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

@ -26,7 +26,7 @@ import os
import time
import fcntl
from nxbt import toggle_input_plugin
from nxbt import toggle_clean_bluez
from nxbt import BlueZ
from nxbt import Controller
from nxbt import PRO_CONTROLLER
@ -125,7 +125,7 @@ if __name__ == "__main__":
port_ctrl = 17
port_itr = 19
toggle_input_plugin(False)
toggle_clean_bluez(True)
bt = BlueZ(adapter_path="/org/bluez/hci0")
controller = Controller(bt, PRO_CONTROLLER)
@ -199,4 +199,4 @@ if __name__ == "__main__":
raise e
finally:
toggle_input_plugin(True)
toggle_clean_bluez(False)