<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58075/sending-sensor-data-from-nrf9160dk-to-the-server</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Feb 2020 08:27:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58075/sending-sensor-data-from-nrf9160dk-to-the-server" /><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/236435?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 08:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1265937b-0213-431b-be71-8ded4a2c97f7</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would recommend that you look into database accessing outside of the scope of the nRF9160, ie: having the mqtt broker or another client connected to the broker (or anything similar), handle the database. We do not have any database client libraries for the nRF9160.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/236260?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 12:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2bc7fa-4913-4d7e-a96a-5a1e091b751e</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Now by using MQTT protocol I can send the data to mqtt server through nrf91. I read other articles, from that it is clear that data is not stored on the mqtt server. I should store this data in a database to access it later. So how this can be done on nrf91? I read that MySQL database or MongoDB are used to store the data. So can this be done through nrf91? Is there any way to store the server data in a database when using nrf91 as a publisher for the server data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/236134?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 07:40:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f6d36bb-b7cb-438b-88c3-f535b38a906d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;MQTT is the transport layer, so I suspect you can send files as well, but I haven&amp;#39;t tried this myself.&lt;/p&gt;
&lt;p&gt;According to this thread on stack overflow, it seems to be possible:&amp;nbsp;&lt;a href="https://stackoverflow.com/a/55811751"&gt;https://stackoverflow.com/a/55811751&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/235959?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 13:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae603e37-64eb-474d-9045-896caf7cd695</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;It is working. Thank you so much.&lt;/p&gt;
&lt;p&gt;I still have a MQTT related question. Can I publish a text file to MQTT broker? My SD card is interfaced to nRF52840 using SPI. I will take this text file on nRF9160dk using SPI. So is it possible to publish this text file to MQTT broker? If yes, how to do this?&lt;/p&gt;
&lt;p&gt;Now I am using&amp;nbsp;test.mosquitto.org for testing purpose. But later I am planning to set a Virtual Private Server for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/235934?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 11:35:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e7147ca-e8ae-4887-8596-6f799f2bc000</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;MQTT has a feature called&amp;nbsp;&lt;a href="https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/"&gt;retained message&lt;/a&gt;, which you can use for this purpose.&lt;/p&gt;
&lt;p&gt;The mqtt library in zephyr supports setting this bit field:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/net/mqtt.h#L242"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/include/net/mqtt.h#L242&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/235920?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 10:35:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e9e7d4-d475-4569-9c10-22b491c4ec86</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/235459?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 13:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8750e158-9558-4412-8a0a-10e0dca6aab8</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;The nRF9160 can do TCP / UDP, so you are free to choose which ever implementation that fits your application best.&lt;/p&gt;
&lt;p&gt;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&amp;#39;s messages.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/235445?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 12:39:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6905787-105b-4a51-afad-54aaf2bf190b</guid><dc:creator>Jagruti</dc:creator><description>&lt;p&gt;I tried using mqtt_simple example. I have never worked on mqtt, so I don&amp;#39;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending Sensor data from nRF9160dk to the server</title><link>https://devzone.nordicsemi.com/thread/235420?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2020 11:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7389aa48-59bb-4d1e-b9ba-4f4d4c71e621</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]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?[/quote]
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>