From f903a930c471cd94dd50168dcbe4e0bf4e4c76a5 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sat, 14 Apr 2018 21:20:45 +0200 Subject: [PATCH] !REPAIR! some more was broken in blescan.cpp --- platformio.ini | 6 +++--- src/blecsan.cpp | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/platformio.ini b/platformio.ini index f5faf74d..faeb47a2 100644 --- a/platformio.ini +++ b/platformio.ini @@ -10,9 +10,9 @@ ; ---> SELECT TARGET PLATFORM HERE! <--- [platformio] -;env_default = heltec_wifi_lora_32 +env_default = heltec_wifi_lora_32 ;env_default = ttgov1 -env_default = ttgov2 +;env_default = ttgov2 ;env_default = lopy ;env_default = lopy4 ;env_default = lolin32lite_lora @@ -23,7 +23,7 @@ platform = espressif32 board = heltec_wifi_lora_32 framework = arduino monitor_baud = 115200 -upload_speed = 921600 +upload_speed = 115200 lib_deps = U8g2 build_flags = diff --git a/src/blecsan.cpp b/src/blecsan.cpp index 495f6e32..a37fdb8f 100644 --- a/src/blecsan.cpp +++ b/src/blecsan.cpp @@ -11,6 +11,8 @@ https://github.com/nkolban/esp32-snippets/tree/master/BLE/scanner #include #include #include +#include +#include // defined in macsniff.cpp bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type); @@ -23,6 +25,7 @@ static const char *bt_event_type_to_string(uint32_t eventType); static const char *bt_gap_search_event_type_to_string(uint32_t searchEvt); static const char *bt_addr_t_to_string(esp_ble_addr_type_t type); static const char *bt_dev_type_to_string(esp_bt_dev_type_t type); +static const char *btsig_gap_type(uint32_t gap_type); static void gap_callback_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param); // local Tag for logging