{"id":18140748,"url":"https://github.com/saadkhanjadoon/flutterble","last_synced_at":"2026-01-25T10:32:46.367Z","repository":{"id":259685093,"uuid":"879175235","full_name":"SaadKhanJadoon/FlutterBLE","owner":"SaadKhanJadoon","description":"A Flutter demo for Bluetooth Low Energy (BLE) that demonstrates device scanning, connections, and data transfer between Android devices, including smartphones and Android boxes.","archived":false,"fork":false,"pushed_at":"2024-10-27T09:24:34.000Z","size":440,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-02-12T23:43:54.267Z","etag":null,"topics":["ble","bluetooth","bluetooth-low-energy","flutter","flutter-ble","flutter-blue","flutter-bluetooth","flutter-bluetooth-serial"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaadKhanJadoon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-27T07:44:44.000Z","updated_at":"2024-10-27T09:27:28.000Z","dependencies_parsed_at":"2024-10-27T10:38:11.441Z","dependency_job_id":"7099de07-222b-44fc-bfdd-b163d8ab6175","html_url":"https://github.com/SaadKhanJadoon/FlutterBLE","commit_stats":null,"previous_names":["saadkhanjadoon/flutterble"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadKhanJadoon%2FFlutterBLE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadKhanJadoon%2FFlutterBLE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadKhanJadoon%2FFlutterBLE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaadKhanJadoon%2FFlutterBLE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaadKhanJadoon","download_url":"https://codeload.github.com/SaadKhanJadoon/FlutterBLE/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238569595,"owners_count":19493912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ble","bluetooth","bluetooth-low-energy","flutter","flutter-ble","flutter-blue","flutter-bluetooth","flutter-bluetooth-serial"],"created_at":"2024-11-01T16:06:47.337Z","updated_at":"2025-10-27T23:30:46.536Z","avatar_url":"https://github.com/SaadKhanJadoon.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Flutter BLE Project\n\nA Flutter demo for Bluetooth Low Energy (BLE) that enables device scanning, connections, and data transfer between Android devices, including smartphones and Android boxes.\n\n## Features\n\n- Scan for BLE devices.\n- Establish secure and insecure RFCOMM connections.\n- Manage connections and handle data transfer.\n- Support for both smartphones and Android boxes.\n\n## Installation\n   - **Clone the Repository**\n      ```bash\n      git clone https://github.com/yourusername/flutter_ble_project.git\n      cd flutter_ble_project\n      ```\n\n   - **Install Dependencies**\n      ```bash\n      flutter pub get\n      ```\n\n   - **Set Up Native Code.** Ensure that the AndroidManifest.xml includes necessary Bluetooth permissions and configurations.\n\n## Usage\n   - **Run the App**\n      ```bash\n      flutter run\n      ```\n\n   - **Enable Bluetooth \u0026 Permissions.** The app will request permissions to enable Bluetooth. Grant them for full functionality.\n\n   - **Scanning for Devices.** Go to the device scanning screen and tap the \"Refresh\" button to discover nearby devices.\n\n   - **Connecting to a Device.** Tap on a listed device to establish a connection using insecure RFCOMM sockets.\n\n   - **Data Transfer.** Use the provided UI controls to send and receive data between devices.\n\n## Problem Faced \u0026 Solution:\n- **Physical Device Connection.** I faced issues with unstable connections when trying to connect physical Android devices using BLE. To resolve this, I used a combination of:\n\n\n   - `flutter_bluetooth_serial: ^0.4.0` for reliable classic Bluetooth connections.\n   - `flutter_blue_plus: ^1.32.8` for BLE support.\nUsing both packages together provided better compatibility and improved connection stability across devices.\n\n## Permissions\n\nRequired permissions:\n\n      1. BLUETOOTH\n      2. BLUETOOTH_ADMIN\n      3. BLUETOOTH_SCAN\n      4. BLUETOOTH_CONNECT\n      5. ACCESS_FINE_LOCATION\n\n\nEnsure these permissions are requested at runtime, especially on **Android 10 and above**.\n\n## Contributing\nContributions are welcome! If you'd like to contribute:\n- **Fork the repository**\n- **Create a new branch** for your feature or bug fix.\n- **Submit a pull request** with a detailed description of your changes.\n\n## License\n```bash\nCopyright (C) 2023-2024 SaadKhan\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadkhanjadoon%2Fflutterble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaadkhanjadoon%2Fflutterble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadkhanjadoon%2Fflutterble/lists"}