Read Device Events
terminal_read_device_eventsRead retained device appearance and disappearance events and wait for newer events using a cursor; check connection decisions before opening serial sessions.
Instructions
Read retained device appearance and disappearance events immediately when cursor is omitted; use terminal_wait_device_event to wait after a known cursor. After an appeared event, call terminal_get_connection_decision before opening a serial session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cursor | No | 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 |