<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to SendData</title><link>https://sourceforge.net/p/m2mlabs/wiki/SendData/</link><description>Recent changes to SendData</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/SendData/feed" rel="self"/><language>en</language><lastBuildDate>Thu, 23 Apr 2015 06:12:16 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/SendData/feed" rel="self" type="application/rss+xml"/><item><title>SendData modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/SendData/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -33,7 +33,7 @@
 Example

 ~~~~~~
-POST http://localhost/cs-ws/resources/admin/device?apikey=1234 HTTP/1.1
+POST http://localhost/cs-ws/resources/connector?apikey=1234&amp;amp;device_name=Device1 HTTP/1.1
 &amp;lt;sensor&amp;gt;
    &amp;lt;name&amp;gt;TemperatureSensor&amp;lt;/name&amp;gt;
    &amp;lt;attribute&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Thu, 23 Apr 2015 06:12:16 -0000</pubDate><guid>https://sourceforge.net1d89b4d2f051c77b87cf21554eb2d8f09ebb7929</guid></item><item><title>SendData modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/SendData/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,6 +1,6 @@
 ### Send Device Data ###

-Device data are sent in the domain of the owner identified by the apikey. Each data item, called a moment consists of a timestamp and a value. This service allows to send 1..n moments for 1..n attributes of 1..n sensors of a device. Sensornames and attributenames must exist according to the device model of the sending device. Timestamp has to be given as in the same time zone as the server time. If the timestamp is not given the reception time at the server is taken as timestamp
+Device data are sent in the domain of the owner identified by the apikey. Each data item, called a moment consists of a timestamp and a value. This service allows to send 1..n moments for 1..n attributes of 1..n sensors of a device. Sensornames and attributenames must exist according to the device model of the sending device. Timestamp has to be given in the same time zone as the server time. [Get Time](https://sourceforge.net/p/m2mlabs/wiki/GetTime) should be used to get the server time. If the timestamp is not given the reception time at the server is taken as timestamp.

 Path: cs-ws/resources/connector        Method: POST

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Thu, 16 Apr 2015 20:22:14 -0000</pubDate><guid>https://sourceforge.net2f8abf18928dfb2ee6945eaafd02a4880010062a</guid></item><item><title>SendData modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/SendData/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -1,6 +1,6 @@
 ### Send Device Data ###

-Device data are sent in the domain of the owner identified by the apikey. Each data item, called a moment consists of a timestamp and a value. This service allows to send 1..n moments for 1..n attributes of 1..n sensors of a device. Sensornames and attributenames must exist according to the device model of the sending device. If the timestamp is not given the reception time at the server is taken as timestamp
+Device data are sent in the domain of the owner identified by the apikey. Each data item, called a moment consists of a timestamp and a value. This service allows to send 1..n moments for 1..n attributes of 1..n sensors of a device. Sensornames and attributenames must exist according to the device model of the sending device. Timestamp has to be given as in the same time zone as the server time. If the timestamp is not given the reception time at the server is taken as timestamp

 Path: cs-ws/resources/connector        Method: POST

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Thu, 16 Apr 2015 20:19:35 -0000</pubDate><guid>https://sourceforge.netbcc071549aa003cf81ed4d0691d652167a564e0d</guid></item><item><title>WikiPage SendData modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/SendData/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -28,7 +28,7 @@
 Errors:
 
 * 401 UNAUTHORIZED if key is invalid or not admin key
-* 404 NOT FOUND if sensor or attributes do not
+* 404 NOT FOUND if sensor or attributes do not exist
 
 Example
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 20:37:53 -0000</pubDate><guid>https://sourceforge.net755bc2b5c16918a13550a8aedfa71fd2bd3fe901</guid></item><item><title>WikiPage SendData modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/SendData/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -28,7 +28,7 @@
 Errors:
 
 * 401 UNAUTHORIZED if key is invalid or not admin key
-* 409 CONFLICT if sensor model already exists
+* 404 NOT FOUND if sensor or attributes do not
 
 Example
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 20:36:29 -0000</pubDate><guid>https://sourceforge.net6a44c358c8ea0f2389b1851853f62924823d75b2</guid></item><item><title>WikiPage SendData modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/SendData/</link><description>### Send Device Data ###

Device data are sent in the domain of the owner identified by the apikey. Each data item, called a moment consists of a timestamp and a value. This service allows to send 1..n moments for 1..n attributes of 1..n sensors of a device. Sensornames and attributenames must exist according to the device model of the sending device. If the timestamp is not given the reception time at the server is taken as timestamp

Path: cs-ws/resources/connector        Method: POST

Parameters

* apikey
* device_name

Data

~~~~~~
&lt;sensor&gt;
   &lt;name&gt;...&lt;/name&gt;
   &lt;attribute&gt;
      &lt;name&gt;...&lt;/name&gt;
      &lt;moment&gt;
          &lt;timestamp&gt;yyyy-mm-dd hh:hh:ss.SSS&lt;/timestamp&gt;
          &lt;value&gt;...&lt;/value&gt;
      &lt;/moment&gt;
   &lt;/attribute&gt;
&lt;/sensor&gt;
...
~~~~~~

Errors:

* 401 UNAUTHORIZED if key is invalid or not admin key
* 409 CONFLICT if sensor model already exists

Example

~~~~~~
POST http://localhost/cs-ws/resources/admin/device?apikey=1234 HTTP/1.1
&lt;sensor&gt;
   &lt;name&gt;TemperatureSensor&lt;/name&gt;
   &lt;attribute&gt;
      &lt;name&gt;Temperature&lt;/name&gt;
      &lt;moment&gt;
          &lt;timestamp&gt;2012-08-31 19:55:54.036&lt;/timestamp&gt;
          &lt;value&gt;1.1&lt;/value&gt;
      &lt;/moment&gt;
   &lt;/attribute&gt;
&lt;/sensor&gt;

HTTP/1.1 200 OK
~~~~~~
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 20:31:18 -0000</pubDate><guid>https://sourceforge.net459abce8d2a6c75b2d0f57cb52720ffd4797530e</guid></item></channel></rss>