HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
BluetoothComprehensiveTest.cpp File Reference

Comprehensive Bluetooth/NimBLE testing suite for ESP32-C6 DevKit-M-1 (noexcept) More...

#include "base/BaseBluetooth.h"
#include "mcu/esp32/EspBluetooth.h"
#include "TestFramework.h"
#include <vector>
Include dependency graph for BluetoothComprehensiveTest.cpp:

Functions

void bluetooth_event_callback (hf_bluetooth_event_t event, void *event_data) noexcept
 
bool test_bluetooth_initialization () noexcept
 
bool test_bluetooth_basic_operations () noexcept
 
bool test_bluetooth_scanning () noexcept
 
bool test_bluetooth_state_management () noexcept
 
bool test_bluetooth_cleanup () noexcept
 
void app_main (void)
 

Variables

static const char * TAG = "BT_Test"
 
static TestResults g_test_results
 
static EspBluetooth bluetooth_instance
 
static constexpr bool ENABLE_CORE_TESTS = true
 
static constexpr bool ENABLE_SCANNING_TESTS = true
 
static constexpr bool ENABLE_MANAGEMENT_TESTS = true
 

Detailed Description

Comprehensive Bluetooth/NimBLE testing suite for ESP32-C6 DevKit-M-1 (noexcept)

This file contains a dedicated, comprehensive test suite for the EspBluetooth class targeting ESP32-C6 with ESP-IDF v5.5+ and NimBLE. It provides thorough testing of all Bluetooth/BLE functionalities including initialization, scanning, device discovery, connection management, and advanced features.

All functions are noexcept - no exception handling used.

Author
Nebiyu Tadesse
Date
2025

Function Documentation

◆ app_main()

void app_main ( void )

◆ bluetooth_event_callback()

void bluetooth_event_callback ( hf_bluetooth_event_t event,
void * event_data )
noexcept

◆ test_bluetooth_basic_operations()

bool test_bluetooth_basic_operations ( )
noexcept

◆ test_bluetooth_cleanup()

bool test_bluetooth_cleanup ( )
noexcept

◆ test_bluetooth_initialization()

bool test_bluetooth_initialization ( )
noexcept

◆ test_bluetooth_scanning()

bool test_bluetooth_scanning ( )
noexcept

◆ test_bluetooth_state_management()

bool test_bluetooth_state_management ( )
noexcept

Variable Documentation

◆ bluetooth_instance

EspBluetooth bluetooth_instance
static

◆ ENABLE_CORE_TESTS

constexpr bool ENABLE_CORE_TESTS = true
staticconstexpr

◆ ENABLE_MANAGEMENT_TESTS

constexpr bool ENABLE_MANAGEMENT_TESTS = true
staticconstexpr

◆ ENABLE_SCANNING_TESTS

constexpr bool ENABLE_SCANNING_TESTS = true
staticconstexpr

◆ g_test_results

TestResults g_test_results
static

◆ TAG

const char* TAG = "BT_Test"
static