diff options
| author | Edvin <[email protected]> | 2025-04-08 10:32:57 +0200 |
|---|---|---|
| committer | Edvin <[email protected]> | 2025-04-08 10:32:57 +0200 |
| commit | 85635af1852b29e33ee56535d71bdf20d700b77e (patch) | |
| tree | 2cba990ef17b24767a7f6369d690f307d5a7f0d3 /control.py | |
| parent | 71520eab9c30b4bc666d79b145a0d11d2501131e (diff) | |
Added C code for the Raspberry pi due to compatiblity issues between Bluez versions
Diffstat (limited to 'control.py')
| -rw-r--r-- | control.py | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -17,15 +17,12 @@ def get_input() -> str: pi = "B8:27:EB:D1:A5:A9" sock = bluetooth.BluetoothSocket(bluetooth.RFCOMM) -# sock.bind(("", bluetooth.PORT_ANY)) - -# port = sock.getsockname()[1] print("Attempting to connect to %s..." % pi) sock.connect((pi, 1)) -print("Connected") +print("Connected to %s." % pi) input = "0" |
