Wait for Device Event
terminal_wait_device_eventWaits for a device appearance or disappearance event after a known cursor so agents can detect serial device changes and proceed with connection decisions.
Instructions
Wait for a device appearance or disappearance event after a known cursor; use terminal_read_device_events without cursor for an immediate snapshot. After appeared, call terminal_get_connection_decision before terminal_open_serial.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | Yes | Optional next device event cursor; when set, wait for newer events. | |
| max_events | No | Maximum number of device events to return. | |
| timeout_ms | No | Optional wait timeout in milliseconds when cursor is supplied; maximum 86400000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| events | Yes | ||
| dropped | Yes |