Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
341
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. from gattlib import *
  2. ImportError: No module named gattlib
  3.  
  4. sudo pip install gattlib
  5.  
  6. /usr/bin/ld: cannot find -lboost_thread
  7. collect2: error: ld returned 1 exit status
  8. error:command 'c++' failed with exit status 1
  9.  
  10. # bluetooth low energy scan
  11. from bluetooth.ble import DiscoveryService
  12.  
  13. service = DiscoveryService()
  14. devices = service.discover(2)
  15.  
  16. for address, name in devices.items():
  17. print("name: {}, address: {}".format(name, address))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement