Reputation: 23
I am trying to create a mobile app using flutter that connects and reads/writes data from multiple Bluetooth low energy devices. I am a beginner in flutter and I have read that using BluetoothGatt you can achieve that but I haven't found any exhaustive documentation on the steps I should follow.
Upvotes: 1
Views: 793
Reputation: 15573
Flutter is a UI framework. If the main purpose of your app involves BLE, controlling it from flutter would cause you a headache.
Build your app where all the BLE logic is on the native side, and use the Native bridge as an interface for sending/receiving data to/from the UI. (You can build it as a plugin, but it's more advanced stuff)
You'll benefit a simple multiplatform unified UI, with all advantages of working natively and having full control over the hardware-related stuff.
Upvotes: 1