Skip to content

GATT Not Working #26

@mayardamaury

Description

@mayardamaury

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions