ESPHome
2024.11.1
esphome
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
esp32_ble_tracker.h
esphome::exposure_notifications::ExposureNotification::rolling_proximity_identifier
std::array< uint8_t, 16 > rolling_proximity_identifier
Definition:
exposure_notifications.h:16
automation.h
esphome::exposure_notifications::ExposureNotification::associated_encrypted_metadata
std::array< uint8_t, 4 > associated_encrypted_metadata
Definition:
exposure_notifications.h:17
esphome::esp32_ble_tracker::ESPBTDeviceListener
Definition:
esp32_ble_tracker.h:120
esphome::exposure_notifications::ExposureNotification::address
std::array< uint8_t, 6 > address
Definition:
exposure_notifications.h:14
esphome::exposure_notifications::ExposureNotification
Definition:
exposure_notifications.h:13
esphome::exposure_notifications::ExposureNotificationTrigger
Definition:
exposure_notifications.h:20
esphome::esp32_ble_tracker::ESPBTDevice
Definition:
esp32_ble_tracker.h:63
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
esphome::Trigger
Definition:
automation.h:92
component.h
esphome::exposure_notifications::ExposureNotification::rssi
int rssi
Definition:
exposure_notifications.h:15
Generated by
1.8.13