Created
March 17, 2022 11:27
-
-
Save AuraLoredana/a95427ffd87d7f49b52c43973bfbcf8f to your computer and use it in GitHub Desktop.
rfcomm-server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bluetooth | |
serverMACAddress = “88:1B:99:0C:23:0F” | |
port = 22 | |
s = bluetooth.BluetoothSocket(bluetooth.RFCOMM) | |
s.connect((serverMACAddress, port)) | |
while 1: | |
text = raw_input() | |
if text == "quit": | |
break | |
s.send(text) | |
sock.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment