AIBridge is a high-performance Flutter application designed for the seamless configuration and provisioning of AI Chatbot hardware via Bluetooth Low Energy (BLE). It provides a robust interface for bridging the gap between local network connectivity and cloud intelligence.
- 🎯 Smart Scanning: Advanced BLE filtering optimized for AI Chatbot identification using manufacturer data markers (
AIC). - 🔐 Secure Provisioning: Encrypted-ready transmission of WiFi credentials (SSID/Password) to hardware nodes.
- 🔑 API Key Management: Dedicated interface for injecting LLM/Cloud provider API keys into edge devices.
- 🛠️ System Orchestration: Direct command interface for remote system restarts and hardware maintenance.
- 📱 Premium UX: Modern, high-density dark interface with real-time connection state animations.
- Framework: Flutter (Dart)
- Communication: flutter_reactive_ble for high-reliability BLE streams.
- Permissions: Granular management via
permission_handler.
- Flutter SDK (v3.6.0+)
- Bluetooth-enabled mobile device (Android/iOS)
- AI Chatbot Hardware (Firmware compatible with AIBridge BLE Service UUIDs)
- Clone the repository:
git clone <repository-url>
- Install dependencies:
flutter pub get
- Run the application:
flutter run
AIBridge follows a decoupled, reactive architecture designed for maintainability and scalability:
- Service Layer (
BleService): Centralizes all BLE logic, handling scanning, GATT connection lifecycles, MTU negotiation, and reactive streams. - UI Layer (
HomeScreen,AppTheme): A highly modularized user interface that observes state changes from the service layer, avoiding excessivesetStaterebuilds. - Configuration (
ble_constants.dart): Hardcoded identifiers and UUIDs are extracted into a dedicated constants file for cleaner management. - Build System: Android build configurations have been modernized to use Kotlin DSL (KTS) for improved type safety and maintainability.
Built with ❤️ for the AI Chatbot Ecosystem.