Connect to MQTT broker using BLE connection

Hi.
Know how to connect an ESP32 MQTT publisher to an MQTT broker (i.e. Mosquitto) using a WiFi connection :

// Initialise the WiFi and MQTT Client objects
WiFiClient wifiClient;
// 1883 is the listener port for the Broker
PubSubClient client(mqtt_server, 1883, wifiClient); 

But my question is: is it possible to do the same using a BLE connection without WiFi ?
Any idea?
Thanks in advance

have a look at the OpenMQTTGateway

1 Like

Check this guide on how to enable Mosquitto MQTT on ESP32 Module

1 Like

Did you found any ways to implement MQTT using BLE connection without WiFi?

I'm using this:
Theengs gateway

Is it a good solution for MQTT over BLE? I am trying to implement a solution for my project.

Yes. It is a BLE gateway that sends all to MQTT server like Mosquitto

Hi @m4biz

Would you mind sharing your code?

I am trying to BLE broadcast IO pin readings from a RP2040 Nano to TheengsGateway on a Raspberry Pi. The Mosquitto output is home/TheengsGateway/BTtoMQTT/30C6F7018E72 {"name": "RP2040", "id": "30:C6:F7:01:8E:72", "rssi": -60}. Added characteristics seems to be missing.

Thank you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.