MQTT connection over BLE

Are there any examples showing use of the MQTT library using Bluetooth as the Link Layer? I see this on Zephyr's repo zephyr/subsys/net/l2/bluetooth at main · zephyrproject-rtos/zephyr (github.com). But struggling to see any way to "plug it in" to where it needs to go.

Parents
  • Hi,

    What exactly is it that you are trying to achieve? Why do you want to send MQTT over BLE?

    Best regards,

    Didrik

  • The use case is a device (nRF9160 with a nRF52820 on the same board, split BLE Host/Controller) that normally sends and receives data via MQTT to AWS IoT core over the LTE link. However, some customers are using the device in an area with poor cell coverage or internationally and we don't have a SIM card that works in all countries. In the cell denied case, we sell gateways that provide Internet connectivity with BLE being the link between device and gateway. All the data ends up at IoT Core, and the gateway is a dumb forwarder and has no use for the data it's receiving. I'm trying to reduce the amount of code I'm writing because I'm having to make all these BLE services and do translations on the gateway side in order for the gateway to send the device data to IoT Core correctly. It'd be nice to open an MQTT over the BLE link, send the data I need, and disconnect. Is this feasible?

Reply
  • The use case is a device (nRF9160 with a nRF52820 on the same board, split BLE Host/Controller) that normally sends and receives data via MQTT to AWS IoT core over the LTE link. However, some customers are using the device in an area with poor cell coverage or internationally and we don't have a SIM card that works in all countries. In the cell denied case, we sell gateways that provide Internet connectivity with BLE being the link between device and gateway. All the data ends up at IoT Core, and the gateway is a dumb forwarder and has no use for the data it's receiving. I'm trying to reduce the amount of code I'm writing because I'm having to make all these BLE services and do translations on the gateway side in order for the gateway to send the device data to IoT Core correctly. It'd be nice to open an MQTT over the BLE link, send the data I need, and disconnect. Is this feasible?

Children
Related