mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-31 07:10:45 +00:00
9 lines
295 B
Python
9 lines
295 B
Python
import bluetooth
|
|
address="28:2D:7F:C2:05:5B"
|
|
try:
|
|
sock = bluetooth.BluetoothSocket(bluetooth.L2CAP)
|
|
sock.connect((address, 0x1001))
|
|
sock.send(b"\x00\x00\x04\x00\x01\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00")
|
|
except bluetooth.btcommon.BluetoothError as e:
|
|
print(f"Error: {e}")
|