serial_write
Write data to an open serial port for fire-and-forget commands or manual timing control.
Instructions
Write data to the open serial port.
For most interactions, prefer serial_command() which writes and waits for the response in one step. Use serial_write() for fire-and-forget or when you need manual timing control.
Args: data: Text to send over serial session_id: Port name of the session to write to. Optional if only one session is open. encoding: Character encoding to use append_newline: Whether to append \r\n to the data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| encoding | No | utf-8 | |
| session_id | No | ||
| append_newline | No |