ble_drain_notifications
Collect BLE notifications in batches with configurable timeouts and idle gaps, ideal for downloading log files or datasets.
Instructions
Batch-collect notifications: waits up to timeout_s for the first notification, then keeps collecting until idle_timeout_s passes with no new data, max_items is reached, or the total timeout_s expires. Ideal for bursty flows like downloading a log file or dataset over BLE notifications.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"connection_id": "<connection_id>",
"subscription_id": "<subscription_id>"
},
"name": "ble_drain_notifications"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_items | No | Max notifications to collect (default 200, max 5000). | |
| timeout_s | No | Total max wait in seconds (default 2, max 60). | |
| connection_id | Yes | ||
| idle_timeout_s | No | Max idle gap between notifications before stopping (default 0.25, max 10). | |
| subscription_id | Yes |