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
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.