Menu

ReadSensorModel

Jim

Read a certain Sensor Model

Returns an existing Sensor Model in the domain of an owner identified by the apikey

Path: cs-ws/resources/admin/sensormodel Method: GET

Parameters

  • apikey
  • sensormodel_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/sensormodel?sensormodel_name=NewSensorModel
&apikey=1234 HTTP/1.1

HTTP/1.1 200 OK
<sensormodel>
   <attribute>
      <name>Temperature</name>
      <type>Number</type>
   </attribute>
   <config>
      <displayname>Unit</displayname>
      <name>unit</name>
   </config>
   <config>
      <displayname>Maximum</displayname>
      <name>max</name>
   </config>
   <name>NewSensorModel</name>
</sensormodel>

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.