ESPHome
2025.6.3
Loading...
Searching...
No Matches
esphome
components
esp32_ble
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
7
namespace
esphome
{
8
namespace
esp32_ble {
9
10
// Structure for BLE scan results - only fields we actually use
11
struct
__attribute__
((packed)) BLEScanResult {
12
esp_bd_addr_t bda;
13
uint8_t ble_addr_type;
14
int8_t rssi;
15
uint8_t ble_adv[ESP_BLE_ADV_DATA_LEN_MAX + ESP_BLE_SCAN_RSP_DATA_LEN_MAX];
16
uint8_t adv_data_len;
17
uint8_t scan_rsp_len;
18
uint8_t search_evt;
19
};
// ~73 bytes vs ~400 bytes for full esp_ble_gap_cb_param_t
20
21
}
// namespace esp32_ble
22
}
// namespace esphome
23
24
#endif
__attribute__
struct @67::@68 __attribute__
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0