User Tools

Site Tools


webserviceinterface21

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

webserviceinterface21 [2015/01/13 14:58]
paalsteek added nameserver to heartbeat response too
webserviceinterface21 [2015/04/09 11:56] (current)
paalsteek added port as optional sensor setting
Line 337: Line 337:
   {   {
     config : {     config : {
-       device:      <string(32) - device id>, +       device:          <string(32) - device id>, 
-       externalid:  <string(64) - sensor id given by the client>, +       externalid:      <string(64) - sensor id given by the client>, 
-       function:    <string(16) - sensor name>, +       function:        <string(16) - sensor name>, 
-       unit:        <string(16) - sensor unit>, +       class:           <string(10) - sensor class (either analog or pulse)>, 
-       class:       <string(10) - sensor class (either analog or pulse)>, +       voltage:         <integer    - sensor voltage in Volts (only if class is analog)>, 
-       voltage:     <integer    - sensor voltage in Volts (only if class is analog)>, +       current:         <integer    - sensor current in Amperes (only if class is analog)>, 
-       current:     <integer    - sensor current in Amperes (only if class is analog)>, +       constant:        <integer    - sensor constant in pulses/kWh (only if class is pulse)>, 
-       constant:    <integer    - sensor constant in pulses/kWh (only if class is pulse)>, +       description:     <string(64) - a user defined description of the sensor>, 
-       description: <string(64) - a user defined description of the sensor>+       unit (optional): <string(16) - sensor unit>, 
 +       port (optional): <integer    - physical port of the sensor>
     }     }
   }   }
Line 368: Line 369:
   {   {
     config : {     config : {
-       device:      <string(32) - device id>, +       device:          <string(32) - device id>, 
-       externalid:  <string(64) - sensor id given by the client>, +       externalid:      <string(64) - sensor id given by the client>, 
-       function:    <string(16) - sensor name>, +       function:        <string(16) - sensor name>, 
-       unit:        <string(16) - sensor unit>, +       unit:            <string(16) - sensor unit>, 
-       class:       <string(10) - sensor class (one of analog, pulse)>, +       class:           <string(10) - sensor class (one of analog, pulse)>, 
-       voltage:     <integer    - sensor voltage (iff class is analog and type is electricity)>, +       voltage:         <integer    - sensor voltage (iff class is analog and type is electricity)>, 
-       current:     <integer    - sensor current (iff class is analog and type is electricity)>, +       current:         <integer    - sensor current (iff class is analog and type is electricity)>, 
-       constant:    <integer    - sensor constant (iff class is pulse)>, +       constant:        <integer    - sensor constant (iff class is pulse)>, 
-       type:        <string(16) - sensor type (one of electricity, water, gas)>, +       type:            <string(16) - sensor type (one of electricity, water, gas)>, 
-       description: <string(64) - a user defined description of the sensor>+       description:     <string(64) - a user defined description of the sensor>, 
 +       port (optional): <integer - physical port of the sensor>
     }     }
   }   }
webserviceinterface21.txt · Last modified: 2015/04/09 11:56 by paalsteek