Menu

ReadDevice

Jim

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 device is not found

Example

GET http://localhost/cs-ws/resources/admin/device/
?device_name=MyTempDev&apikey=1234 HTTP/1.1

HTTP/1.1 200 OK
<device>
   <actor>
      <config>
         <name>max</name>
         <value>100</value>
      </config>
      <model>WaterValve</model>
      <name>position</name>
   </actor>
   <config>
      <name>maxpos</name>
      <value>1000</value>
   </config>
   <model>MyTemperatureDeviceModel</model>
   <name>MyTempDev</name>
   <sensor>
      <name>TemperatureSensor1</name>
   </sensor>
   <sensor>
      <name>TemperatureSensor2</name>
   </sensor>
</device>

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.