Work in progress to implement an BLE sniffer sending packets through MQTT
- 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 MQTTComponent config
Bluetooth
->Bluedroid Bluetooth stack enabled
to activateGATT client module(GATTC)
Partition Table
-> SelectCustom partition CSV file
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