Example #1
0
 /**
  * <summary>
  *   Returns the sensor health state code, which is zero when there is an up-to-date measure
  *   available or a positive code if the sensor is not able to provide a measure right now.
  * <para>
  * </para>
  * <para>
  * </para>
  * </summary>
  * <returns>
  *   an integer corresponding to the sensor health state code, which is zero when there is an up-to-date measure
  *   available or a positive code if the sensor is not able to provide a measure right now
  * </returns>
  * <para>
  *   On failure, throws an exception or returns <c>YSensor.SENSORSTATE_INVALID</c>.
  * </para>
  */
 public int get_sensorState()
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Sensor connected");
     }
     return(_func.get_sensorState());
 }