obniz to be used
Rsponse waiting timeout in milliseconds
Static prefixedOptional context: anySome electrical parts or circuits accept "pulse" and echo the "pulse" after delay. This module is best suited for measuring that delay.
This module generates one pulse shot on an io, then measures the response time.
// Javascript Example
obniz.measure.echo({
io_pulse: 0, // io for generate pulse
io_echo: 1, // io to be measured
pulse: "positive", // generate pulse pattern
pulse_width: 0.1, // generate pulse width
measure_edges: 3, // 1 to 4. maximum edges to measure
timeout: 1000, // this is optional. 1000(1sec) is default
callback: function(edges) {
// callback function
console.log(edges);
}
});
Optional fn: ListenerFnOptional context: anyOptional once: booleanAdd a listener for a given event.
Optional context: anyAdd a one-time listener for a given event.
Optional context: anyRemove all listeners, or those of the specified event.
Optional event: stringRemove the listeners of a given event.
Optional fn: ListenerFnOptional context: anyOptional once: booleanGenerated using TypeDoc
The measure module provides hardware level measurement.