Skip to content

Instantly share code, notes, and snippets.

View jeff-song1122's full-sized avatar

jeff-song1122

View GitHub Profile
@jeff-song1122
jeff-song1122 / pyBluezServer.py
Created November 6, 2022 23:39 — forked from kevindoran/pyBluezServer.py
A simple Python script to receive messages from a client over Bluetooth using PyBluez (with Python 2).
"""
A simple Python script to receive messages from a client over
Bluetooth using PyBluez (with Python 2).
"""
import bluetooth
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
backlog = 1