pybricks / support

Pybricks support and general discussion
MIT License
109 stars 6 forks source link

[Bug] GATT Server is disconnected #1824

Open jxpybrick opened 1 month ago

jxpybrick commented 1 month ago

Describe the bug

Error: Failed to execute 'getPrimaryService' on 'BluetoothRemoteGATTServer':
GATT Server is disconnected.
Cannot retrieve services. (Re)connect first with device.gatt.connect. at D.<computed> 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1397636) at 
https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1401567 at m 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1402498) at h 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1402024) at l 
(https://code.pybricks.com/static/js/main.1bf60dfd.js:2:1402281)

To reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior What did you expect to happen instead?

Screenshots There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

dlech commented 4 weeks ago

Thanks for reporting the issue. However, this isn't enough information to be able to determine the cause of the problem. We will need more information, like details about your OS and which Bluetooth adapter you are using. The most helpful thing is to capture Bluetooth packets so we can see what is going on at a lower level. This is described in more detail in #270.