Upload And Wait Ready
upload_and_wait_readyUpload an Arduino sketch and monitor serial output for a specified pattern, handling post-upload reset and re-enumeration automatically.
Instructions
Upload a sketch and wait for a serial readiness pattern, handling post-upload reset/re-enumeration windows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketchPath | Yes | Path to sketch folder or .ino file. | |
| port | Yes | Serial port path, e.g. COM6 or /dev/ttyACM0. | |
| fqbn | No | Optional board FQBN when auto-detect is insufficient. | |
| verify | No | Verify uploaded binary when supported. | |
| autoInstallCore | No | If true (default), auto-install missing board core when fqbn is provided. | |
| readyPattern | No | Optional serial text pattern to wait for after upload. | |
| readyTimeoutMs | No | How long to wait for readyPattern. | |
| readyBaudRate | No | Baud rate for readiness check. Default 115200. | |
| readyCaseSensitive | No | If true, readiness matching is case-sensitive. | |
| unsafeSkipPreflight | No | If true, bypasses safety_preflight checks. Use only when user explicitly accepts risk. | |
| safetyContext | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| status | No | ||
| command | No | ||
| data | No | ||
| raw | No | ||
| rawTail | No | ||
| stage | No | ||
| errorCode | No | ||
| retryable | No | ||
| reasonCodes | No | ||
| nextActions | No | ||
| note | No | ||
| error | No |