support
support copied to clipboard
[Bug] GATT Server is disconnected
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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.
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.