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?

Parents
  • 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

Reply
  • 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

Children
No Data
Related