connect_g1_device
Establish a BLE connection to a G1 device using its Bluetooth MAC address, enabling communication via the Nordic UART protocol. Returns connection status, device name, and error details if applicable.
Instructions
Connect to a G1 device by address.
Args:
address (str): The Bluetooth MAC address of the G1 device to connect to.
Format should be XX:XX:XX:XX:XX:XX where X are hexadecimal characters.
Example: "AA:BB:CC:DD:EE:FF"
Returns:
Dict[str, Any]: JSON response with connection status including:
- result: "success" or "error"
- connected: Boolean indicating connection state
- device_name: Name of connected device (if successful)
- device_address: Address of connected device (if successful)
- error: Error message if connection failed
Note:
This establishes a BLE connection to the specified device and discovers
the Nordic UART service and characteristics.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | Yes |
Input Schema (JSON Schema)
{
"properties": {
"address": {
"title": "Address",
"type": "string"
}
},
"required": [
"address"
],
"title": "connect_g1_deviceArguments",
"type": "object"
}