This file contains hidden or 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
| """ | |
| A simple Python script to receive messages from a client over | |
| Bluetooth using Python sockets (with Python 3.3 or above). | |
| """ | |
| import socket | |
| hostMACAddress = '00:1f:e1:dd:08:3d' # The MAC address of a Bluetooth adapter on the server. The server might have multiple Bluetooth adapters. | |
| port = 3 # 3 is an arbitrary choice. However, it must match the port used by the client. | |
| backlog = 1 |
NewerOlder