Hcsr04.TryGetDistance(Length) Method

Definition

Try to gets the current distance, , usual range from 2 cm to 400 cm

public bool TryGetDistance (out UnitsNet.Length result);
member this.TryGetDistance : Length -> bool
Public Function TryGetDistance (ByRef result As Length) As Boolean

Parameters

result
UnitsNet.Length

Length

Returns

True if success

Applies to