diff --git a/README.md b/README.md index 37890cc9..8979eb04 100644 --- a/README.md +++ b/README.md @@ -36,15 +36,15 @@ Hardware dependent settings (pinout etc.) are stored in board files in /hal dire Power consumption: -- Heltec ~650mW -- TTGOv1 ~650mW -- TTGOv2 ~670mW -- LoPy with expansion board: ~530mW -- LoPy pure, without expansion board: ~460mW +- Heltec ~720mW +- TTGOv1 TBD +- TTGOv2 ~990mW +- LoPy with expansion board: ~690mW +- LoPy pure, without expansion board: TBD - LoLin32 with [LoraNode32 shield](https://github.com/hallard/LoLin32-Lora): TBD - LoLin32 Lite with [LoraNode32-Lite shield](https://github.com/hallard/LoLin32-Lite-Lora): TBD -These results where metered with software version 1.2.0 during active wifi scan, no LoRa TX’ing, OLED display off, 5V USB powered. +These results where metered with software version 1.2.97 while continuously scanning wifi and ble, no LoRa TX’ing, OLED display (if present) on, 5V USB powered. # Building diff --git a/src/blecsan.cpp b/src/blecsan.cpp index a37fdb8f..69cbf5c3 100644 --- a/src/blecsan.cpp +++ b/src/blecsan.cpp @@ -14,18 +14,16 @@ https://github.com/nkolban/esp32-snippets/tree/master/BLE/scanner #include #include +#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