disconnect_g1_device
Terminate the active BLE connection to a G1 device, clean up resources, stop the heartbeat mechanism, and reset connection state. Returns disconnection status and device details.
Instructions
Disconnect from the current G1 device.
Returns:
Dict[str, Any]: JSON response with disconnection status including:
- result: "success" or "error"
- disconnected: Boolean indicating disconnection state
- device_name: Name of previously connected device (if successful)
- error: Error message if disconnection failed
Note:
This closes the BLE connection to the currently connected device,
cleans up resources, stops the heartbeat mechanism, and resets connection state.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
No arguments |
Input Schema (JSON Schema)
{
"properties": {},
"title": "disconnect_g1_deviceArguments",
"type": "object"
}