micropython_hash_file
Compute the hash of a file on a MicroPython device to verify integrity or detect changes; supports SHA-256.
Instructions
MicroPython ボード上のファイルのハッシュを返す。
Args: path: 対象ファイルパス algorithm: ハッシュアルゴリズム。現状は sha256 のみ timeout: コード送信から Raw REPL 復帰完了までの全体タイムアウト秒数
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| timeout | No | ||
| algorithm | No | sha256 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| path | Yes | ||
| error | Yes | ||
| digest | Yes | ||
| algorithm | Yes | ||
| size_bytes | Yes |