Krishna Kumar <
din...@gmail.com> writes:
> Hi,
> I am doing this as a hobby. I am working on implementing an end-to-end
Thanks. Many do not want to provide free consulting to people working
at companies who post using gmail and don't identify the context.
> solution of IoT devices with different communication networks. I have
> implemented MQTT over WiFi and was able to send message from MQTT client
> device to MQTT broker (a Raspberry Pi 4 as a Gateway). Now I am planning to
> implement a MQTT connection over BLE. For this, I have configured rsmb
> broker in my gateway. Now I would like to communicate BLE client to the
> rsmb broker. I am struck in this. Also please do let me know if there's any
> other efficient approach to establish a MQTT over BLE communication.
As I understand it, MQTT is primarily defined to operate over TCP and
thus implicitly over IPv4 or IPv6. But it is also defined, at least in
practice, to operate over websockets.
It seems obvious that you could have some sort of data stream (meaning
same characteristics to the next-higher layer as TCP) in BLE, put mqtt
in that, and then have the BLE/IP gateway glue that stream to a
connection to the server. There's a fair bit of code to be written,
probably.
I found this:
https://iot.stackexchange.com/questions/1825/is-mqtt-protocol-appropriate-for-transmitting-sensor-readings-over-ble
which has a lot of advice (which seems sensible to me on a quick
reading).