Closed Yolo-cell-hash closed 1 month ago
I think what you want is so called "peripheral mode" of Bluetooth: when your device (probably a phone or tablet) augments a Bluetooth device. Most of the Bluetooth plugins (including FBP) do not support / target peripheral mode. The few plugins I saw and tried didn't work, but let me know if you find any because I'm also interested.
this is addressed in the readme:
Introduction
FlutterBluePlus is a Bluetooth Low Energy plugin for Flutter.
It supports BLE Central Role only (most common).
If you need BLE Peripheral Role, you should check out FlutterBlePeripheral, or bluetooth_low_energy.
the answer is no. Try https://pub.dev/packages/bluetooth_low_energy instead.
If you instead want to send data to a connected peripheral, just call chr.write(...)
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.32.12
Flutter Version
3.24.3
What OS?
Android
OS Version
Android 14
Bluetooth Module
-
What is your problem?
Can I somehow advertise my device data / any custom data to the BLE device ? I tried reading some references to get here
Is there any way to achieve this ?
Logs