micropython_connection_status
Check if a MicroPython device is connected and return serial or WebREPL transport details, target, host, port, baudrate, and errors.
Instructions
現在の接続状態を返す
Returns:
ok: 成功 True
connected: 接続中なら True
transport: serial または webrepl
target: 接続時に指定したターゲット
host: WebREPL 接続時のホスト
port: 接続先ポート
baudrate: serial 接続時のボーレート
error: エラー時のメッセージ
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| host | Yes | ||
| port | Yes | ||
| error | Yes | ||
| target | Yes | ||
| baudrate | Yes | ||
| connected | Yes | ||
| transport | Yes |