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
Bluetooth #57
Comments
I'd be happy to work on this with you. Would you be interested in collaborating a little? There are a lot of Bluetooth APIs provided by Windows, so it would be helpful to know which ones provide the base functionality you need, and then we can always extend this. It might also be good to connect with someone like @pauldemarco who has written a high-level Flutter API with flutter_blue and add a Windows implementation that depends on my win32 repo for the low-level APIs. |
Thanks for your quick reply ! Starting next week I'll be happy to dive into this. |
Sounds good. I've started work on this here: https://github.com/timsneath/win32/tree/bluetooth |
Great stuff. I’d love to help in any way I can. Perhaps it’s time to convert flutter_blue into a Federated plugin. @timsneath do you happen to know if the federated plugin framework is stable? |
Yes, the federated plugin model itself is stable. There may be minor changes to the plugin APIs for Windows and Linux themselves, but you should feel confident to migrate the overall plugin across. |
@926 I checked in some initial support for Bluetooth device discovery with win32 1.6.7. See https://github.com/timsneath/win32/blob/master/lib/src/bthprops.dart and https://github.com/timsneath/win32/blob/master/example/bluetooth.dart. One slight challenge is that I don't have a modern Windows laptop (I'm doing my development from a Macbook connected to a cloud instance of Windows at present), so testing is a little problematic. I'm going to see what I can lay my hands on. |
Hi, @timsneath, thanks for this, and sorry for the delay, I've had more work than planned, |
No worries!
…On Wed, Jul 15, 2020 at 2:04 AM Pierre ***@***.***> wrote:
Hi, @timsneath <https://github.com/timsneath>, thanks for this, and sorry
for the delay, I've had more work than planned,
I borrowed a pc to test device discovery,
if needed I can run queries
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#57 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARWL66VMCDXPRBEILYTIC3R3VWIFANCNFSM4OMOSH3A>
.
|
Hi Tim, |
No problem. If there's someone else out there who wants Bluetooth on Windows from Flutter/Dart, I'm more than happy to collaborate on the Win32 API side of the house /cc @pauldemarco who may have some ideas on community contributors. |
I'd like to help. But I'm only familiar with BluetoothLE: https://github.com/woodemi/quick_blue Any document for thermal printing on Win7? |
@timsneath I also have usecase for bluetooth on windows. I was trying the example In the above example https://github.com/timsneath/win32/blob/main/example/bluetooth.dart#L16 |
Hi @catchkvs, there were some limitations with the FFI support in Dart 2.12 which made it hard to fully implement Bluetooth support. As a result, this sample doesn't work on the current stable release of Flutter or Dart. (That's why it wasn't listed in the README.) Dart 2.13 will add support for packed structs and arrays, which makes this possible. I've updated the example accordingly, and now for example, on my machine it returns the following:
You'll need the Until it's released, you can use this version of the package from your code by adding a dependency directly to the git reference, like this: dependencies:
win32:
git:
url: https://github.com/timsneath/win32.git
ref: dart2.13 Hope this helps! |
Thank you so much for sharing this repo :)
I would like to provide thermal printing using bluetooth for a Flutter desktop app used on windows.
It seems this could be achieved using the win32 API calls mentioned :
Once implemented, it could also lead to a dedicated bluetooth repo similar to your filepicker_windows.
The text was updated successfully, but these errors were encountered: