final List<BluetoothService> services = await device.discoverServices();
for (final BluetoothService service in services) {
// Reads all characteristics
final List<BluetoothCharacteristic> characteristics =
service.characteristics;
for (final BluetoothCharacteristic c in characteristics) {
if (c.properties.write) {
// Writes to a characteristic
await c.write(data); // <--- Cannot write value
}
}
}
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.30.3
Flutter Version
3.13.9
What OS?
Android
OS Version
Android 12
Bluetooth Module
LoRa Wireless Stick Lite V3 /433/470-510/863/868-915/928 Hz ESP32 Lora Development Board SX1276 ESP32-PICO-D4 Esp32
What is your problem?
Not able to write to the Bluetooth device in Xiaomi phone (Redmi Note 11) Note: On iOS, the problem does not occur.
Logs
Code