I’m working on a project with an ESP32 and have just started working with OMG. I could use some assistance with setting up custom MQTT-to-BLE command handling. My goal is to control a Bluetooth ceiling fan by broadcasting specific BLE manufacturer data when receiving MQTT commands from Home Assistant.
I cannot locate the primary MQTT handler. I expected to find a centralized MQTT callback function (like MQTTtoBT or mqttCallback) to process incoming MQTT messages and call my custom BLE broadcast function, but I haven’t been able to locate it. Is there a specific file or function in the latest version where MQTT messages are processed for BLE commands? I’ve implemented a function to send custom BLE manufacturer data. I need help understanding where in the code I should integrate this function to trigger on specific MQTT topics.
And while I’m asking for help…
I’m using the latest user_config.h for Wi-Fi and MQTT settings, and I have enabled the BLE gateway (ZgatewayBT). Are there additional configuration steps I should be aware of for custom MQTT commands?
Thanks