https://github.com/guyromb/pyblewrapper
Python BLE (Bluetooth Low Energy) Wrapper for Unix Bluez
https://github.com/guyromb/pyblewrapper
Last synced: over 1 year ago
JSON representation
Python BLE (Bluetooth Low Energy) Wrapper for Unix Bluez
- Host: GitHub
- URL: https://github.com/guyromb/pyblewrapper
- Owner: guyromb
- Created: 2016-05-24T11:00:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T11:03:33.000Z (about 10 years ago)
- Last Synced: 2025-01-21T13:09:05.797Z (over 1 year ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Scanning Example:
```
from Libraries.Bluetooth.Bluetooth import *
import sys
import json
if len(sys.argv) < 4:
sys.exit("Usage: %s device-type device-name timeout" % sys.argv[0])
results = "" # JSON
if sys.argv[1] == "ble":
results = Bluetooth(Bluetooth.M_AUTO, sys.argv[2]).lescan(sys.argv[3], False)
print(str(json.dumps(results)))
else:
print("Device type is unknown")
```