From e38eae90e29ac6dc99c96d1d34fd530885ca8326 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Thu, 24 Sep 2020 22:29:07 +0200 Subject: [PATCH] CWA detection improved (Issue #636) --- src/blecsan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blecsan.cpp b/src/blecsan.cpp index 960825c5..288757a0 100644 --- a/src/blecsan.cpp +++ b/src/blecsan.cpp @@ -9,7 +9,7 @@ // UUID of Exposure Notification Service (ENS) // see // https://blog.google/documents/70/Exposure_Notification_-_Bluetooth_Specification_v1.2.2.pdf -static const char ensMagicBytes[] = "\x03\x03\x6F\xfd"; +static const char ensMagicBytes[] = "\x16\x6f\xfd"; // local Tag for logging static const char TAG[] = "bluetooth"; @@ -170,7 +170,7 @@ IRAM_ATTR void gap_callback_handler(esp_gap_ble_cb_event_t event, #if (COUNT_ENS) // check for ens signature - if (0 == strncmp((const char *)p->scan_rst.ble_adv, ensMagicBytes, 4)) + if (NULL != strstr((const char *)p->scan_rst.ble_adv, ensMagicBytes)) cwa_mac_add(hashedmac); #endif