This repository contains a Bluetooth Low Energy (BLE) project demonstrating how to use BLE in a Flutter/Dart Android app to communicate with an ESP32 device.
- Example 0: Basic Connect Write - Connects to ESP32, sends data in the most easiest way.
- Example 1: Read/Write Example - Connects to ESP32, sends and receives data.
- Example 2: Multiple Characteristics - Reads and writes multiple BLE characteristics simultaneously, including real-time notifications (e.g., temperature sensor).
- Example 3: Large Data Transfer - Splits large packets (300 bytes) into smaller BLE-compatible chunks (17 bytes per packet) and reconstructs them on the app side.
- Install dependencies (
flutter_blue_plus: ^1.34.5
inpubspec.yaml
). - Add necessary BLE permissions in
AndroidManifest.xml
. - Load the corresponding ESP32 BLE firmware.
Short demonstration videos for each example are available in the Video/Final_video
folder.
Developed by Gilian Bensoussan