Sensor API: Difference between revisions

no edit summary
No edit summary
Line 61: Line 61:


interface SensorWatchOptions {
interface SensorWatchOptions {
    attribute  any highThreshold; // High threshold. If the sensor value is higher a data event will be raised
  // High threshold. If the sensor value is higher a data event will be raised
     attribute  any lowThreshold; // Low threshold. If the sensor value is lower a data event will be raised
     attribute  any highThreshold;  
     attribute double relativeThreshold; // Notify only when a relative change in the magnitude meausured by the sensor occurs  
    // Low threshold. If the sensor value is lower a data event will be raised
     attribute double interval; // Interval at which values will be provided by the sensor (milliseconds)
     attribute any lowThreshold;
    // Notify only when a relative change in the magnitude meausured by the sensor occurs  
     attribute double relativeThreshold;  
    // Interval at which values will be provided by the sensor (milliseconds)
    attribute double interval;
};
};


172

edits