!REPAIR! some more was broken in blescan.cpp

This commit is contained in:
Klaus K Wilting 2018-04-14 21:20:45 +02:00
parent ed8334d3e8
commit f903a930c4
2 changed files with 6 additions and 3 deletions

View File

@ -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 =

View File

@ -11,6 +11,8 @@ https://github.com/nkolban/esp32-snippets/tree/master/BLE/scanner
#include <esp_bt.h>
#include <esp_bt_main.h>
#include <esp_gap_ble_api.h>
#include <esp_blufi_api.h>
#include <bt_types.h>
// 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