ESPHome 2025.8.0b2
Loading...
Searching...
No Matches
ble_scan_result.h
Go to the documentation of this file.
1#pragma once
2
3#ifdef USE_ESP32
4
5#include <esp_gap_ble_api.h>
6
7namespace esphome::esp32_ble {
8
9// Structure for BLE scan results - only fields we actually use
10struct __attribute__((packed)) BLEScanResult {
11 esp_bd_addr_t bda;
12 uint8_t ble_addr_type;
13 int8_t rssi;
14 uint8_t ble_adv[ESP_BLE_ADV_DATA_LEN_MAX + ESP_BLE_SCAN_RSP_DATA_LEN_MAX];
15 uint8_t adv_data_len;
16 uint8_t scan_rsp_len;
17 uint8_t search_evt;
18}; // ~73 bytes vs ~400 bytes for full esp_ble_gap_cb_param_t
19
20} // namespace esphome::esp32_ble
21
22#endif
struct @67::@68 __attribute__