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.
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 |