Skip to content

Oliv4945/ESP-Beacon-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

BLE Beacon tracker on ESP32, sending data through

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published