Network

Network namespace

Classes

class  BluetoothManager
 
class  WebServerManager
 
class  WiFiManager
 

Enumerations

enum class  BluetoothState {
  IDLE , INITIALIZING , ADVERTISING , CONNECTED ,
  DISCONNECTED , ERROR
}
 

Detailed Description

CloudMouse SDK - Bluetooth Connection Manager Implementation

Pure connection lifecycle management for BLE. NO application logic - that belongs in application layer using BleKeyboard.

CloudMouse SDK - Web Server Manager Implementation

Captive portal implementation for WiFi credential collection during device setup. Provides responsive web interface with automatic network detection and modern UI.

CloudMouse SDK - Web Server Manager

Captive portal web server for WiFi credential configuration during device setup. Provides a responsive web interface for network selection and credential entry.

Features:

  • Automatic WiFi network scanning and display
  • Responsive HTML interface with modern CSS styling
  • Form-based credential collection with validation
  • Integration with WiFiManager for connection handling
  • Static file serving and error handling

Usage:

  1. Initialize after setting up Access Point mode
  2. Call update() in main loop to handle client requests
  3. Web interface accessible at device IP (typically 192.168.4.1)
  4. Automatically saves credentials and initiates connection

CloudMouse SDK - WiFi Connection Manager Implementation

Comprehensive WiFi lifecycle management with event-driven architecture and automatic recovery. Integrates NTP time synchronization, credential persistence, and multiple connection fallback methods.

Architecture:

  • Event-driven state machine using ESP32 WiFi events
  • Automatic credential management via NVS storage
  • Timeout handling with configurable retry logic
  • Integration with NTPManager for time synchronization
  • Device-specific AP configuration using MAC-based credentials

Enumeration Type Documentation

◆ BluetoothState

Bluetooth connection state enumeration Represents all possible states in the BLE lifecycle

Enumerator
IDLE 
INITIALIZING 
ADVERTISING 
CONNECTED 
DISCONNECTED 
ERROR