rtt_read_raw
Read new bytes from a Segger RTT broadcast log starting at a given offset without consuming them, allowing multiple readers to coexist without data loss.
Instructions
Read new bytes from the broadcast log starting at a byte offset. Non-draining and multi-consumer safe: ideal for a continuous monitor that must coexist with other readers without stealing their data. Pass the returned next_offset as 'offset' on the next call; if the log rotated (next_offset > file size), pass offset=0. Returns JSON: {"data": "...", "next_offset": N}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Byte offset to read from (default: 0). | |
| max_bytes | No | Maximum bytes to return (default: 8192). |