Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code gets stuck inside DiscoverServices() method #107

Open
lidiyag opened this issue Jul 2, 2019 · 1 comment
Open

Code gets stuck inside DiscoverServices() method #107

lidiyag opened this issue Jul 2, 2019 · 1 comment

Comments

@lidiyag
Copy link

lidiyag commented Jul 2, 2019

I used paypal/gatt package to create and connect a bluetooth server and peripheral device . I created a service exactly like the one described in examples folder. The service which I created is advertised correctly. When I am trying to connect to this service using a peripheral device which is written using paypal/gatt I am getting a random failure. Upon checking logs I realized that it is getting stuck in DiscoverServices() method. In DiscoverServices()[present in peripheral_linux.go] there is call to sendReq() method. When the channel gets value the control goes to loop() function in same file.There it is calling the Read and Write methods. It seems like write is happening properly but the code is getting stuck inside Read()[present in l2cap.go]. When I debugged I could see that the read is getting value from handleL2CAP()[hci.go] which is called by handlePacket()[hci.go].

@lidiyag
Copy link
Author

lidiyag commented Jul 2, 2019

Can someone help me with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant