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:
parent
0fe9acaaf0
commit
a13345b4c8
8 changed files with 279 additions and 58 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue