<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to SensorPart</title><link>https://sourceforge.net/p/m2mlabs/wiki/SensorPart/</link><description>Recent changes to SensorPart</description><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/SensorPart/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 22 Sep 2012 19:11:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/m2mlabs/wiki/SensorPart/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage SensorPart modified by Jim</title><link>https://sourceforge.net/p/m2mlabs/wiki/SensorPart/</link><description>### Read the Sensor Part of a Device Model ###

Returns the sensor part of an existing Device Model in the domain of an owner identified by the apikey. The sensor part includes the sensor model name

Path: cs-ws/resources/admin/devicemodel/sensorpar        Method: GET

Parameters

* apikey
* devicemodel_name
* sensor_name

Errors:

* 401 UNAUTHORIZED if key is invalid
* 404 NOT FOUND if the sensor part or the device model is not found

Example

~~~~~~
GET http://localhost/cs-ws/resources/admin/devicemodel/sensorpart
?devicemodel_name=DM1&amp;apikey=1234&amp;sensor_name=Sensor1 HTTP/1.1

HTTP/1.1 200 OK
&lt;sensor&gt;
   &lt;model&gt;SM1&lt;/model&gt;
   &lt;name&gt;Sensor1&lt;/name&gt;
&lt;/sensor&gt;
~~~~~~
</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Sat, 22 Sep 2012 19:11:03 -0000</pubDate><guid>https://sourceforge.net576891aba2a9d41444144b39251863eaea44722b</guid></item></channel></rss>