May I use Theengs to send data from MQTT broker to BLE devices?

I’m learned on how to use Theengs OpenMQTT gateway to collect data from BLE sensors and send it to MQTT broker.
This works fine.
Anyway I need to send data from MQTT broker to BLE sensors (in the reverse path)
Is OpenMQTT useful for this purpose?
Any idea?
Thanks in advance


You can write data to a device that accept it:

Thanks for your reply.
Anyway, how must I confgure my BLE device (i.e. ESP32 device) so that it can accept write command from gateway ?
Could you provide me an example?


You could try this example to have a BLE server:

1 Like

The real problem is that I’d like to integrate all in Home Assistant and I don’t know how to connect a command like:

mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoBT -m '{
  "immediate":true }'

to an HA switch.

In other words, I know how to issue the command from the command line but how may I link this command to an HA entity?
Any idea?