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

Hub Attached IO init messages too fast #29

Open
tthiery opened this issue Sep 5, 2020 · 1 comment
Open

Hub Attached IO init messages too fast #29

tthiery opened this issue Sep 5, 2020 · 1 comment

Comments

@tthiery
Copy link

tthiery commented Sep 5, 2020

When the GATT device is connected, the characteristic instantly receives a series of Hub Attached IO messages with the purpose of declaring the internal devices of the hub and the currently connected devices. This is basically awesome for setting up the protocol state, however, in some environments (Chrome WebBluetooth) it is (to my experience) impossible to register the notification handler before the hub shoots their notifications. I am successfully doing and relying on that in my .NET/WinRT environment (which assumingly is just a bit closer the actual BLE stack than Chrome/WebBluetooth). IMHO, the existing JavaScript libraries are not relying on these information but instead utilize cached/hardcoded knowledge.

Can I/we hereby request a message which can explicitly trigger this initial Hub Attached IO dump/discovery/scan? Maybe in the general request/response pattern exposed in the LWP, this could be named "Hub Attached IO Request".

The alternative to hardcode or query a "Port Information Request" per imaginable number which would take too long and would not expose the IO Type.

@tthiery
Copy link
Author

tthiery commented Sep 9, 2020

Just a short update: My StackOverflow question on this topic was filed as an issue with the WebBluetooth working group. Worthwhile read also in context of this request.

Issue is still in the protocol and not the stack / API.

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