ESPHome
2026.5.1
Loading...
Searching...
No Matches
esphome
components
exposure_notifications
exposure_notifications.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/core/automation.h
"
5
#include "
esphome/components/esp32_ble_tracker/esp32_ble_tracker.h
"
6
#include <array>
7
8
#ifdef USE_ESP32
9
10
namespace
esphome::exposure_notifications
{
11
12
struct
ExposureNotification
{
13
std::array<uint8_t, 6>
address
;
14
int
rssi
;
15
std::array<uint8_t, 16>
rolling_proximity_identifier
;
16
std::array<uint8_t, 4>
associated_encrypted_metadata
;
17
};
18
19
class
ExposureNotificationTrigger
:
public
Trigger
<ExposureNotification>,
20
public
esp32_ble_tracker::ESPBTDeviceListener
{
21
public
:
22
bool
parse_device
(
const
esp32_ble_tracker::ESPBTDevice
&device)
override
;
23
};
24
25
}
// namespace esphome::exposure_notifications
26
27
#endif
esphome::Trigger
Definition
automation.h:477
esphome::esp32_ble_tracker::ESPBTDevice
Definition
esp32_ble_tracker.h:78
esphome::esp32_ble_tracker::ESPBTDeviceListener
Definition
esp32_ble_tracker.h:143
esphome::exposure_notifications::ExposureNotificationTrigger
Definition
exposure_notifications.h:20
esphome::exposure_notifications::ExposureNotificationTrigger::parse_device
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
Definition
exposure_notifications.cpp:13
component.h
automation.h
esp32_ble_tracker.h
esphome::exposure_notifications
Definition
exposure_notifications.cpp:7
esphome::exposure_notifications::ExposureNotification
Definition
exposure_notifications.h:12
esphome::exposure_notifications::ExposureNotification::associated_encrypted_metadata
std::array< uint8_t, 4 > associated_encrypted_metadata
Definition
exposure_notifications.h:16
esphome::exposure_notifications::ExposureNotification::address
std::array< uint8_t, 6 > address
Definition
exposure_notifications.h:13
esphome::exposure_notifications::ExposureNotification::rssi
int rssi
Definition
exposure_notifications.h:14
esphome::exposure_notifications::ExposureNotification::rolling_proximity_identifier
std::array< uint8_t, 16 > rolling_proximity_identifier
Definition
exposure_notifications.h:15
Generated by
1.12.0