connect
Open a serial link to a Betaflight flight controller, verify MSP identity and API 1.40+, and return firmware details; close the port on failure.
Instructions
Connecte le serveur au FC via port série (ferme la connexion précédente). Vérifie l'identité : réponse MSP, firmware Betaflight (BTFL), API >= 1.40 ; sinon échec et port refermé. Retourne api_version, fc_variant, fc_version.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port série, ex. /dev/ttyACM0, /dev/cu.usbmodem1101 ou COM3. Omis : BETAFLIGHT_PORT, sinon détection du FC Betaflight branché | |
| baudrate | No | Baudrate du port USB VCP (Betaflight : 115200) |