micropython_download_file
Download a file from a MicroPython device to the local host, with options for overwrite and timeout.
Instructions
MicroPython ボード上のファイルをローカルへ保存する。
Args: remote_path: デバイス側ファイルパス local_path: ホスト側保存先パス。ワークスペース内のみ指定可能 timeout: コード送信から Raw REPL 復帰完了までの全体タイムアウト秒数 overwrite: False のとき既存ファイルを上書きしない
Returns: ok: 保存に成功したら True remote_path: 読み出したデバイス側パス local_path: 保存したローカルパス bytes_written: 保存したバイト数 sha256: 保存内容の sha256。失敗時は None error: エラー時のメッセージ
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| overwrite | No | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | Yes | ||
| sha256 | Yes | ||
| local_path | Yes | ||
| remote_path | Yes | ||
| bytes_written | Yes |