<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to CreateSensorModel</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/</link><description>Recent changes to CreateSensorModel</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 22 Sep 2012 17:11:35 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage CreateSensorModel modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/</link><description>&lt;pre&gt;--- v4
+++ v5
@@ -14,18 +14,18 @@
 &lt;sensormodel&gt;
    1..n attributes containing name and datatype of the attribute
    &lt;attribute&gt;
-      &lt;name&gt;Temperature&lt;/name&gt;
-      &lt;type&gt;Number&lt;/type&gt;
+      &lt;name&gt;...&lt;/name&gt;
+      &lt;type&gt;...&lt;/type&gt;  one of Number, Date, Boolean, Text, GpsData
    &lt;/attribute&gt;
    ...
    1..n configuration parameters containing a display name and an internal name
    values are assigned when a sensor based on the sensor model is created
    &lt;config&gt;
-      &lt;displayname&gt;Unit&lt;/displayname&gt;
-      &lt;name&gt;unit&lt;/name&gt;
+      &lt;displayname&gt;...&lt;/displayname&gt;
+      &lt;name&gt;...&lt;/name&gt;
    &lt;/config&gt;
    ...
-   &lt;name&gt;NewSensorModel&lt;/name&gt;
+   &lt;name&gt;...&lt;/name&gt;
 &lt;/sensormodel&gt;
 ~~~~~~
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 17:11:35 -0000</pubDate><guid>https://sourceforge.net5d0fb5d889bb977052b5e8eab042f6fb4825d145</guid></item><item><title>WikiPage CreateSensorModel modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/</link><description>&lt;pre&gt;--- v3
+++ v4
@@ -1,6 +1,6 @@
 ### Create new Sensor Model ###
 
-Creates a new sensor model in the name space of the owner identified by the apikey
+Creates a new sensor model in the domain of the owner identified by the apikey
 
 Path: cs-ws/resources/admin/sensormodel        Method: POST
 
@@ -31,8 +31,8 @@
 
 Errors:
 
+* 401 UNAUTHORIZED if key is invalid or not admin key
 * 409 CONFLICT if sensor model already exists
-* 401 UNAUTHORIZED if key is invalid or not admin key
 
 Example
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 09:45:46 -0000</pubDate><guid>https://sourceforge.net20033d0a9373f4aa1e4aaf607c32e42c56917218</guid></item><item><title>WikiPage CreateSensorModel modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/</link><description>&lt;pre&gt;--- v2
+++ v3
@@ -8,7 +8,7 @@
 
 * apikey
 
-POST Data
+Data
 
 ~~~~~~
 &lt;sensormodel&gt;
@@ -38,11 +38,6 @@
 
 ~~~~~~
 POST http://localhost/cs-ws/resources/admin/sensormodel?apikey=1234 HTTP/1.1
-Accept-Encoding: gzip,deflate
-Content-Type: application/xml
-User-Agent: Jakarta Commons-HttpClient/3.1
-Host: localhost
-Content-Length: 323
 &lt;sensormodel&gt;
    &lt;attribute&gt;
       &lt;name&gt;Temperature&lt;/name&gt;
@@ -60,8 +55,4 @@
 &lt;/sensormodel&gt;
 
 HTTP/1.1 200 OK
-Server: GlassFish Server Open Source Edition 3.1.2
-Content-Length: 0
-Date: Sat, 22 Sep 2012 08:13:34 GMT
-
 ~~~~~~
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 08:45:15 -0000</pubDate><guid>https://sourceforge.netcfa1d27969e859c63bffdc51ec54e28429ef413e</guid></item><item><title>WikiPage CreateSensorModel modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -11,7 +11,6 @@
 POST Data
 
 ~~~~~~
-&lt;owner&gt;
 &lt;sensormodel&gt;
    1..n attributes containing name and datatype of the attribute
    &lt;attribute&gt;
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 08:34:02 -0000</pubDate><guid>https://sourceforge.net38deb86d577c630b0be9724ada8180da71382da4</guid></item><item><title>WikiPage CreateSensorModel modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/CreateSensorModel/</link><description>### Create new Sensor Model ###

Creates a new sensor model in the name space of the owner identified by the apikey

Path: cs-ws/resources/admin/sensormodel        Method: POST

Parameters

* apikey

POST Data

~~~~~~
&lt;owner&gt;
&lt;sensormodel&gt;
   1..n attributes containing name and datatype of the attribute
   &lt;attribute&gt;
      &lt;name&gt;Temperature&lt;/name&gt;
      &lt;type&gt;Number&lt;/type&gt;
   &lt;/attribute&gt;
   ...
   1..n configuration parameters containing a display name and an internal name
   values are assigned when a sensor based on the sensor model is created
   &lt;config&gt;
      &lt;displayname&gt;Unit&lt;/displayname&gt;
      &lt;name&gt;unit&lt;/name&gt;
   &lt;/config&gt;
   ...
   &lt;name&gt;NewSensorModel&lt;/name&gt;
&lt;/sensormodel&gt;
~~~~~~

Errors:

* 409 CONFLICT if sensor model already exists
* 401 UNAUTHORIZED if key is invalid or not admin key

Example

~~~~~~
POST http://localhost/cs-ws/resources/admin/sensormodel?apikey=1234 HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/xml
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost
Content-Length: 323
&lt;sensormodel&gt;
   &lt;attribute&gt;
      &lt;name&gt;Temperature&lt;/name&gt;
      &lt;type&gt;Number&lt;/type&gt;
   &lt;/attribute&gt;
   &lt;config&gt;
      &lt;displayname&gt;Unit&lt;/displayname&gt;
      &lt;name&gt;unit&lt;/name&gt;
   &lt;/config&gt;
   &lt;config&gt;
      &lt;displayname&gt;Maximum&lt;/displayname&gt;
      &lt;name&gt;max&lt;/name&gt;
   &lt;/config&gt;
   &lt;name&gt;NewSensorModel&lt;/name&gt;
&lt;/sensormodel&gt;

HTTP/1.1 200 OK
Server: GlassFish Server Open Source Edition 3.1.2
Content-Length: 0
Date: Sat, 22 Sep 2012 08:13:34 GMT

~~~~~~
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 08:15:32 -0000</pubDate><guid>https://sourceforge.netc4bbccf413e4960e74589114ed8ea92f8472da0d</guid></item></channel></rss>