When handling an Input that sends data at a high rate (e.g., 10 times per second), it can be useful to "throttle" the inputs to avoid reporting each and every value.
This section uses the example of throttling the value of the light sensor included with the mangOH Red, to illustrate how periodically report the value every 10 seconds.
Note that in this configuration, the last known light value at the 10 second interval will be reported. In some cases it may be useful to also configure a buffer, function, and/or filter in addition to throttling, as described in the previous sections.
- Create an Observation that Buffers Data.
- Enable Throttle events.
- Enter 10 into Period. This specifies the time, in seconds, at which the current value from the light sensor will be reported.
- Click Save to complete the modification to the Observation.
Updated 3 months ago