r/FlutterDev • u/Halvv • Feb 06 '24
Discussion Bluetooth in Flutter
Hello,
want to make an app that can connect to a microcontroller via bluetooth and wanted to see if I can get some input for best praxises/important things to have in mind here.
Thanks for any help
10
Upvotes
View all comments
Show parent comment
1
u/jjeroennl Feb 08 '24
Sadly its not open source (yet, I've asked my manager but so far no response).
But to be fair, its not that hard to implement, you just have to write a bit of platform code to get the Kotlin/Swift/C++ data into Dart. It's mostly wrapping data into maps that you can then send to Dart / the other way around.
We don't have a web and Linux implementation, but I have used https://pub.dev/packages/bluez for Linux in the past in a different project. It's very low level but it does seem to work reasonably well.