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

Sending Sensor data from nRF9160dk to the server

Hello,

I am working on nRF9160dk. I have interfaced a GNSS sensor with nRF9160 using UART and receive the data continuously. When there is an interrupt, this data is send to the user via SMS. Now I want to update this sensor data continously on the server. So what is the starting point for this? Which example I should start to connect to the server and send the data continuously?

Thank you

Parents
  • Hi,

     

    Now I want to update this sensor data continously on the server. So what is the starting point for this? Which example I should start to connect to the server and send the data continuously?

    What protocol are you using? UDP or TCP based? MQTT, CoAP? Do you have a server already up-and-running, or are you planning to set up one?

     

    Kind regards,

    Håkon

  • I tried using mqtt_simple example. I have never worked on mqtt, so I don't know much about it. Is it correct to use mqtt to send data continuously to server or is there any other way for nRF9160dk? Right now I am using mqtt.eclipse.org as MQTT Broker, which is already configured for mqtt_simple sample.

  • The nRF9160 can do TCP / UDP, so you are free to choose which ever implementation that fits your application best.

    If MQTT is the best approach for your application, you can choose that. However; I would strongly recommend that you do not use a public mqtt broker, as everyone can then listen in to your device's messages.

     

    Kind regards,

    Håkon

  • Hello,

    I tried the MQTT example. It is working properly. When I publish the data on some topic, I can receive the data on the subscribed topic. So my question is how to access this published data on the server anytime? It means I am sending the GNSS data on my server and I want to check this data anytime even if the board is off. I want to access the data on the server at any given time. So how this is done?I used MQTT.fx to publish and subscribe with the mqtt example. It is very confusing, please help me with this.

    Thanks

Reply
  • Hello,

    I tried the MQTT example. It is working properly. When I publish the data on some topic, I can receive the data on the subscribed topic. So my question is how to access this published data on the server anytime? It means I am sending the GNSS data on my server and I want to check this data anytime even if the board is off. I want to access the data on the server at any given time. So how this is done?I used MQTT.fx to publish and subscribe with the mqtt example. It is very confusing, please help me with this.

    Thanks

Children
Related