fixes blescan.cpp & update readme.md
This commit is contained in:
1 parent
f903a930c4
commit
666d2e0e32
2 files changed
+8
-10
No files matched your search
+2
-4
@@ -14,18 +14,16 @@ https://github.com/nkolban/esp32-snippets/tree/master/BLE/scanner
|
||||
#include <esp_blufi_api.h>
|
||||
#include <bt_types.h>
|
||||
|
||||
#define BT_BD_ADDR_HEX(addr) addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]
|
||||
|
||||
// defined in macsniff.cpp
|
||||
bool mac_add(uint8_t *paddr, int8_t rssi, bool sniff_type);
|
||||
|
||||
#define BT_BD_ADDR_STR "%02x:%02x:%02x:%02x:%02x:%02x"
|
||||
#define BT_BD_ADDR_HEX(addr) addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]
|
||||
|
||||
// Prototypes
|
||||
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
|
||||
|
||||
Reference in new issue
Block a user