ESPHome
2026.10.0-dev
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/ble_device_base/ble_device.h
"
6
#include <array>
7
8
namespace
esphome::exposure_notifications
{
9
10
struct
ExposureNotification
{
11
std::array<uint8_t, 6>
address
;
12
int
rssi
;
13
std::array<uint8_t, 16>
rolling_proximity_identifier
;
14
std::array<uint8_t, 4>
associated_encrypted_metadata
;
15
};
16
17
class
ExposureNotificationTrigger
final :
public
Trigger
<ExposureNotification>,
18
public
ble_device_base::ESPBTDeviceListener
{
19
public
:
20
bool
parse_device
(
const
ble_device_base::ESPBTDevice
&device)
override
;
21
};
22
23
}
// namespace esphome::exposure_notifications
ble_device.h
esphome::Trigger
Definition
automation.h:456
esphome::ble_device_base::ESPBTDevice
Definition
ble_device.h:178
esphome::ble_device_base::ESPBTDeviceListener
Definition
ble_device.h:284
esphome::exposure_notifications::ExposureNotificationTrigger
Definition
exposure_notifications.h:18
esphome::exposure_notifications::ExposureNotificationTrigger::parse_device
bool parse_device(const ble_device_base::ESPBTDevice &device) override
Definition
exposure_notifications.cpp:11
component.h
automation.h
esphome::exposure_notifications
Definition
exposure_notifications.cpp:5
esphome::exposure_notifications::ExposureNotification
Definition
exposure_notifications.h:10
esphome::exposure_notifications::ExposureNotification::associated_encrypted_metadata
std::array< uint8_t, 4 > associated_encrypted_metadata
Definition
exposure_notifications.h:14
esphome::exposure_notifications::ExposureNotification::address
std::array< uint8_t, 6 > address
Definition
exposure_notifications.h:11
esphome::exposure_notifications::ExposureNotification::rssi
int rssi
Definition
exposure_notifications.h:12
esphome::exposure_notifications::ExposureNotification::rolling_proximity_identifier
std::array< uint8_t, 16 > rolling_proximity_identifier
Definition
exposure_notifications.h:13
Generated by
1.12.0