This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

prebuilt binary for nrf9160 to send ble device data using MQTT

We want to achieve something like this -> We have several BLE peripherals with us and we are going to connect this peripherals to nrf9160 using nrf52 module and then send their data(BLE peripherals data) to the MQTT server using nrf9160. is there any prebuilt binary to achieve this?

  • Hi!

    Unfortunately, we don't have anything exactly like what you describe out of box. We only provide binaries for the Asset Tracker sample and the AT Client sample. But we do have information on building and programming an application, so you can do it yourself.

    I think the closest thing we have to what you're describing is the LTE Sensor Gateway sample. This sample collects sensor data via BLE from a Thingy:52 and then transmits this data to the nRF Connect for Cloud. For this sample the Bluetooth: HCI UART application must be running on the nRF52840. 

    The sample can be modified to publish the data to an MQTT broker instead of nRF Connect for Cloud. Take a look at our MQTT Simple sample for an example of how to do this. 

    In regard to modifying the sample to support multiple BLE connections simultaneously, I have not tested this myself but I think you need to set CONFIG_BT_MAX_CONN in both the host and controller. Looks like it's already set to 16 on the nRF52840, see here.

    Best regards,

    Heidi

Related