An open API service indexing awesome lists of open source software.

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

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")
```