waitForGpioCondition
Wait until a GPIO condition reaches the specified state.
Parameter
| Key | Type | Description |
|---|---|---|
| name | string | Name of the GPIO condition. |
| state | boolean | The state to wait for. |
| timeout | number | Optional timeout in seconds. If omitted, waits forever. |
Return value
true if the condition reached the desired state; null if the timeout elapsed before the state was reached.
Example
waitForGpioCondition {"name": "MyCondition", "state": true, "timeout": 5.0}