Last active
December 16, 2015 11:38
-
-
Save kevindoran/5428504 to your computer and use it in GitHub Desktop.
Difference between the Bluetooth and Internet client-server applications.
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
# For the Server | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.bind(("192.168.1.17",50001)) # The Bluetooth MAC Address and RFCOMM port is replaced with an IP Address and a TCP port. | |
# For the Client | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect(("192.168.1.17",50001)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment