ESPHome
2025.5.0
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
{
11
namespace
exposure_notifications {
12
13
struct
ExposureNotification
{
14
std::array<uint8_t, 6>
address
;
15
int
rssi
;
16
std::array<uint8_t, 16>
rolling_proximity_identifier
;
17
std::array<uint8_t, 4>
associated_encrypted_metadata
;
18
};
19
20
class
ExposureNotificationTrigger
:
public
Trigger
<ExposureNotification>,
21
public
esp32_ble_tracker::ESPBTDeviceListener
{
22
public
:
23
bool
parse_device
(
const
esp32_ble_tracker::ESPBTDevice
&device)
override
;
24
};
25
26
}
// namespace exposure_notifications
27
}
// namespace esphome
28
29
#endif
esphome::Trigger
Definition
automation.h:93
esphome::esp32_ble_tracker::ESPBTDevice
Definition
esp32_ble_tracker.h:63
esphome::esp32_ble_tracker::ESPBTDeviceListener
Definition
esp32_ble_tracker.h:120
esphome::exposure_notifications::ExposureNotificationTrigger
Definition
exposure_notifications.h:21
esphome::exposure_notifications::ExposureNotificationTrigger::parse_device
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
Definition
exposure_notifications.cpp:14
component.h
automation.h
esp32_ble_tracker.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
esphome::exposure_notifications::ExposureNotification
Definition
exposure_notifications.h:13
esphome::exposure_notifications::ExposureNotification::associated_encrypted_metadata
std::array< uint8_t, 4 > associated_encrypted_metadata
Definition
exposure_notifications.h:17
esphome::exposure_notifications::ExposureNotification::address
std::array< uint8_t, 6 > address
Definition
exposure_notifications.h:14
esphome::exposure_notifications::ExposureNotification::rssi
int rssi
Definition
exposure_notifications.h:15
esphome::exposure_notifications::ExposureNotification::rolling_proximity_identifier
std::array< uint8_t, 16 > rolling_proximity_identifier
Definition
exposure_notifications.h:16
Generated by
1.12.0