Files
universal_ble/example
Foti Dim 8557a46d05 Add auto-connect support (#206)
* Add autoConnect support

* Enhance autoConnect functionality for Bluetooth devices

- Added support for managing a set of auto-connect devices in both Android and iOS implementations.
- Updated connection and disconnection logic to handle auto-reconnect scenarios appropriately.
- Improved cleanup processes to prevent unwanted reconnections when devices are manually disconnected.

* Refactor connection button and add auto-reconnect toggle

- Updated the connection button layout for better UI consistency.
- Introduced an auto-reconnect toggle to manage automatic reconnections when devices become available.
- Enhanced connection and disconnection logic to respect the auto-connect setting.

* Update version to 1.2.0 and add CHANGELOG for new features

- Bumped version to 1.2.0.
- Added CHANGELOG.md detailing new features including support for `autoConnect` and UI updates for automatic reconnection.

* Improve readme

* Refactor variable naming for clarity in Bluetooth connection logic

- Changed variable name from `isAutoConnect` to `shouldAutoConnect` for better readability and understanding of its purpose in the connection state handling.

* Refactor connection handling in UniversalBlePlugin

- Simplified connection logic by always cleaning up internal state before sending connection change callbacks.
- Ensured GATT resources are only closed when autoConnect is disabled, allowing for better management of Bluetooth connections.

* Refactor disconnection handling in UniversalBlePlugin

- Introduced a new method `handlePeripheralDisconnection` to encapsulate disconnection logic, improving code readability and maintainability.
- Updated the `centralManager` methods to utilize the new disconnection handler, ensuring consistent behavior across connection state changes.

* Update darwin/Classes/UniversalBlePlugin.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Foti Dim <fotios.dimanidis@a2zebra.de>
Co-authored-by: Navideck Labs <130186950+navidecklabs@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-16 11:36:24 +05:30
..
2025-12-21 08:51:36 +01:00
2025-12-21 08:51:36 +01:00
2025-12-21 10:43:56 +01:00
2026-01-16 11:36:24 +05:30
2025-12-21 08:51:36 +01:00
2026-01-16 11:36:24 +05:30
2025-12-21 08:51:36 +01:00
2026-01-16 11:36:24 +05:30
2024-01-24 14:23:49 +01:00
2026-01-16 11:36:24 +05:30
2026-01-12 17:48:58 +01:00
2025-12-21 09:46:17 +01:00
2025-12-23 07:48:31 +01:00

Universal BLE is an open source powerful developer tool for exploring and testing Bluetooth Low Energy (BLE) devices.

Universal BLE is a comprehensive cross-platform developer tool that empowers developers, engineers, and hobbyists to explore, test, and debug Bluetooth Low Energy (BLE) devices with ease. Built with Flutter and supporting multiple platforms, this powerful tool provides everything you need to work with BLE-enabled devices.

Built on the open source universal_ble Flutter plugin - one of the most comprehensive cross-platform BLE solutions available. Package: https://pub.dev/packages/universal_ble

Key Features

Device Discovery

  • Scan for nearby BLE devices in real-time
  • Filter devices by services, manufacturer data, or name prefixes
  • View device information, signal strength, and connection status
  • Access already connected system devices

Connection Management

  • Connect and disconnect from BLE peripherals
  • Monitor connection state changes in real-time
  • Support for multiple simultaneous connections
  • Automatic reconnection handling

Service & Characteristic Exploration

  • Discover all services and characteristics on connected devices
  • Browse GATT services with detailed UUID information
  • View characteristic properties and descriptors
  • Intuitive interface for navigating device capabilities

Data Operations

  • Read characteristic values in real-time
  • Write data to characteristics (with or without response)
  • Subscribe to notifications and indications
  • Monitor value changes with live updates

Pairing & Security

  • Initiate pairing with BLE devices
  • Check pairing status and monitor pairing state changes
  • Support for encrypted characteristics
  • Unpair devices when needed

Advanced Features

  • Request MTU (Maximum Transmission Unit) for optimized data transfer
  • Command queue system for reliable operation
  • Configurable timeouts for all operations
  • Comprehensive error handling with detailed error codes
  • UUID format agnostic (supports all UUID formats)
  • Detailed logging for debugging BLE operations

Cross-Platform Support

  • Native support with consistent API across all platforms
  • Platform-specific optimizations where needed

Perfect For

  • Developers building BLE-enabled applications
  • Engineers testing and debugging BLE devices
  • Hobbyists exploring IoT and smart device capabilities
  • Students learning about Bluetooth Low Energy technology
  • QA Teams validating BLE device functionality

Why Universal BLE?

Universal BLE is built on the open source universal_ble Flutter plugin, one of the most comprehensive cross-platform BLE solutions available. With support for all major platforms and a unified API, you can develop and test BLE applications with confidence.

Whether you're developing a new BLE product, debugging an existing device, or simply exploring the world of Bluetooth Low Energy, Universal BLE provides the tools you need to succeed.

Open Source & Free This app is built on open source technology and is free to use. The underlying plugin is available under the BSD 3-Clause License, making it perfect for both commercial and personal projects.

Universal BLE - Your complete solution for Bluetooth Low Energy development and testing.