8 namespace exposure_notifications {
10 using namespace esp32_ble_tracker;
12 static const char *
const TAG =
"exposure_notifications";
23 if (uuid != expected_uuid)
32 if (service_data.
uuid != expected_uuid)
34 auto data = service_data.
data;
35 if (data.size() != 20)
38 memcpy(¬ification.address[0], device.
address(), 6);
39 memcpy(¬ification.rolling_proximity_identifier[0], &data[0], 16);
40 memcpy(¬ification.associated_encrypted_metadata[0], &data[16], 4);
41 notification.rssi = device.
get_rssi();
42 this->trigger(notification);
const std::vector< ESPBTUUID > & get_service_uuids() const
static ESPBTUUID from_uint16(uint16_t uuid)
const std::vector< ServiceData > & get_service_datas() const
const uint8_t * address() const
Implementation of SPI Controller mode.
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override