https://github.com/null-none/bluetooth-rssi
Bluetooth Proximity Detection
https://github.com/null-none/bluetooth-rssi
bluetooth proximity python rssi
Last synced: 9 months ago
JSON representation
Bluetooth Proximity Detection
- Host: GitHub
- URL: https://github.com/null-none/bluetooth-rssi
- Owner: null-none
- Created: 2024-10-07T10:37:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-07T10:45:19.000Z (over 1 year ago)
- Last Synced: 2025-10-17T01:49:28.329Z (9 months ago)
- Topics: bluetooth, proximity, python, rssi
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bluetooth Proximity Detection
Python code for getting the RSSI value of a Bluetooth device by address. Based on the value returned, can determine the proximity of the device.
## Requirements
This code requires the `bluetooth` and `python-bluez` modules to be installed. On Ubuntu/Debian systems, this can usually be done with the following commands:
```
sudo apt-get install bluetooth
sudo apt-get install python-bluez
```
## Example
```python
from bluetooth_rssi import BluetoothRSSI
BT_ADDR = "C4:36:8D:29:34:CE" # You can put your Bluetooth address here
def main():
bt_rssi = BluetoothRSSI(addr=BT_ADDR)
print(bt_rssi.get_rssi())
if __name__ == "__main__":
main()
```