nRF54L15 to nrf cloud

Hi,

 can i ask how do i send sensor readings from BME280 , SGP40 & SHT40 to nRF cloud. i has installed nRF Cloud gateway app ( Android) but it keep loading. So i am asking is there another 

way to send it to nRF Cloud?

  • Hi,

    Yes, there are other ways to send the sensor data to nRF Cloud. You can for example use Thingy:91, nRF9160 DK or nRF9161 DK. Then, you can run an example which connects to nRF Cloud from nRF Connect SDK. This way, JSON messages are sent by the example to nRF Cloud over LTE. Make sure to modify the example so it sends your BME280/SGP40/SHT40 values in the message.

    Another option is that you can get your API key or simple token by logging in to nRF Cloud. This key can then be used in http requests to https://api.nrfcloud.com/v1/. Then, call the "SendDeviceMessage" REST endpoint as this will allow to push the JSON payload.

    You can also connect via MQTT and publish JSON. Start by using REST API to get mqttEndpoint (name of server to connect to) and mqttTopicPrefix. Your device can then be connected to that MQTT server as it opens a secure MQTT connection to mqttEndpoint. Then, messages can be published on topics under mqttTopicPrefix. So, sensor readings can be published as JSON. 

    Best Regards,

    Samruddhi

  • Hi,

    I would like to clarify the REST API option.

    For the SendDeviceMessage endpoint using an API key:
    does nRF Cloud require a device to already exist, and if so, what type of device is supported for a BLE-only setup (nRF54L15) where an Android phone acts as the gateway?

  • Hi,

    I would say it might be better to associate the device first then use SendDeviceMessage for that deviceID just to be sure. However, our documentation does not state whether the device has to exist from before or if the call will create it. They do mention that by the onboarding steps, the devices are normally added to the team first. To answer the second part, the android phone would be the IP client (gateway). This would call SendDeviceMessage with API key. However, for the setup you're describing, it doesn't seem like our docs mention a specific "BLE-only" device type. 

    Best Regards,

    Samruddhi

Related