Unable to get Service from Bluetooth Sensor Device
-
I have scanned and able to connect with my Ti sensor Device , but on Service request it is not working.
bluetooth = Bluetooth()
bluetooth.start_scan(5)
while bluetooth.isscanning():
adv = bluetooth.get_adv()
if adv:
if(str(binascii.hexlify(adv.mac).decode()) == '78a50454b267'):
conn = bluetooth.connect(adv.mac)
print(type(conn))
service = bluetooth.get_service()
print("got service", service)The service is not print. Loop get stopped their and no response.
Even I have tried so many get service methods.,
missed any import functions. ?
Is there any GATT connection problem. ?
How to import .gatt and its service, characteristic ?? -
please add time.sleep after connection and make service as dictionary, things will work...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login