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_PATHenvironment variable. I use this specific commit, close to v2.1 - Run
make menuconfigNetwork configurationto configure WiFi and MQTTComponent configBluetooth->Bluedroid Bluetooth stack enabledto 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