serial_read_hex
Read buffered serial data as a hex string for binary protocols. Specify session and timeout to retrieve hex-encoded bytes.
Instructions
Read buffered data as hex-encoded bytes (for binary protocols).
Like serial_read() but returns data as a hex string instead of decoded text. Advances the read cursor.
Args: session_id: Port name of the session to read from. Optional if only one session is open. timeout: Seconds to wait for data if buffer is empty
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| session_id | No |