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

GATT Not Working #26

Open
mayardamaury opened this issue Jan 19, 2022 · 0 comments
Open

GATT Not Working #26

mayardamaury opened this issue Jan 19, 2022 · 0 comments

Comments

@mayardamaury
Copy link

Hi !

I've encoutered an issue trying to run your script, when I try to connect Vernie, the GATT throws a generic error.
I've not been able to get where this is coming from, although I'm not very skilled regarding bluetooth connectivity (which is why I was delighted to run into this, thank you for making it opensource !)

Here's what's going on in the console

hub.ts:461 
Writing to device {data: Uint8Array(8), secondArg: true, callback: ƒ}

hub.ts:469 
Error while writing: ��2�Q	 - Error NotSupportedError: GATT Error Unknown.

legoboost.azurewebsites.net/:1
Uncaught (in promise) DOMException: GATT operation failed for unknown reason.

legoBoost.ts:326
handleGattDisconnect

legoBoost.ts:333
Disconnected

Here are the bluetooth log associated with the connection attempt :

[21:24:18] OnConnectionStatusChanged() status=0

[21:24:09] Unexpected GattCommunicationStatus: 1

[21:24:08] OnConnectionStatusChanged() status=1

[21:24:08] OnGattDiscoveryComplete() success=1

[21:24:08] StartGattDiscovery()

[21:24:08] No advertisement flags found.

[21:24:04] Web Bluetooth Device Chooser initiating Bluetooth discovery session

Do you have any idea of how this bug may be fixed ?

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