pyocd_rtt_read
Read data from an RTT up channel for embedded target debugging. Returns decoded text and hex; non-blocking read returns empty when no data.
Instructions
Read data from an RTT up channel. Returns text (decoded) and hex. Non-blocking: returns empty if no data available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | Up channel index (default 0) | |
| encoding | No | Text encoding (default 'utf-8') | utf-8 |
| max_bytes | No | Maximum bytes to read (default 1024) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |