<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to ReadDevice</title><link>https://sourceforge.net/p/m2mlabs/wiki/ReadDevice/</link><description>Recent changes to ReadDevice</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/ReadDevice/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 22 Sep 2012 20:35:04 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/ReadDevice/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage ReadDevice modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/ReadDevice/</link><description>&lt;pre&gt;--- v1
+++ v2
@@ -12,7 +12,7 @@
 Errors:
 
 * 401 UNAUTHORIZED if key is invalid
-* 404 NOT FOUND if the sensor model is not found
+* 404 NOT FOUND if the device is not found
 
 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:35:04 -0000</pubDate><guid>https://sourceforge.netf7381329fb1d1105bb2db9c942ba8b49d9cf51e4</guid></item><item><title>WikiPage ReadDevice modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/ReadDevice/</link><description>### Read a certain Device ###

Returns an existing Device in the domain of an owner identified by the apikey

Path: cs-ws/resources/admin/device        Method: GET

Parameters

* apikey
* device_name

Errors:

* 401 UNAUTHORIZED if key is invalid
* 404 NOT FOUND if the sensor model is not found

Example

~~~~~~
GET http://localhost/cs-ws/resources/admin/device/
?device_name=MyTempDev&amp;apikey=1234 HTTP/1.1

HTTP/1.1 200 OK
&lt;device&gt;
   &lt;actor&gt;
      &lt;config&gt;
         &lt;name&gt;max&lt;/name&gt;
         &lt;value&gt;100&lt;/value&gt;
      &lt;/config&gt;
      &lt;model&gt;WaterValve&lt;/model&gt;
      &lt;name&gt;position&lt;/name&gt;
   &lt;/actor&gt;
   &lt;config&gt;
      &lt;name&gt;maxpos&lt;/name&gt;
      &lt;value&gt;1000&lt;/value&gt;
   &lt;/config&gt;
   &lt;model&gt;MyTemperatureDeviceModel&lt;/model&gt;
   &lt;name&gt;MyTempDev&lt;/name&gt;
   &lt;sensor&gt;
      &lt;name&gt;TemperatureSensor1&lt;/name&gt;
   &lt;/sensor&gt;
   &lt;sensor&gt;
      &lt;name&gt;TemperatureSensor2&lt;/name&gt;
   &lt;/sensor&gt;
&lt;/device&gt;
~~~~~~
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 19:58:50 -0000</pubDate><guid>https://sourceforge.net90cae428771cba3cef42009bc8a57cebac6634c8</guid></item></channel></rss>