Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from gattlib import *
- ImportError: No module named gattlib
- sudo pip install gattlib
- /usr/bin/ld: cannot find -lboost_thread
- collect2: error: ld returned 1 exit status
- error:command 'c++' failed with exit status 1
- # bluetooth low energy scan
- from bluetooth.ble import DiscoveryService
- service = DiscoveryService()
- devices = service.discover(2)
- for address, name in devices.items():
- print("name: {}, address: {}".format(name, address))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement