Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.6 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.6 KB

ESP32 BLE beacon tracker

Work in progress to implement an BLE sniffer sending packets through MQTT

Installation

  • Install ESP32 toolchain as described here. I currently use 1.22.0-75
  • Clone esp-idf and set its IDF_PATH environment variable. I use this specific commit, close to v2.1
  • Run make menuconfig
    • Network configuration to configure WiFi and MQTT
    • Component config
      • Bluetooth->Bluedroid Bluetooth stack enabled to activate GATT client module(GATTC)
      • Partition Table -> Select Custom partition CSV file

Configuration

While WiFi and MQTT have been configured in previous step, some configuration remains -for now- in code:

  • MQTT
  • Security (TLS): Edit espmqtt library #define CONFIG_MQTT_SECURITY_ON, in file mqtt_config.h
  • Publication topic, retain & QOS: Edit them in mqtt_publish() here
  • Scan parameters
    • Frequency: #define SCAN_FREQUENCY_MS here in milliseconds
    • Duration: #define SCAN_DURATION_S next line