You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`max_reconnect_attempts` — Maximum reconnect attempts before giving up (default: `5`)
16
+
-`reconnect_backoff` — Base backoff delay in seconds, with exponential increase (default: `2.0`)
17
+
18
+
When enabled, the WebSocket automatically reconnects on transient failures using exponential backoff. User-initiated `disconnect()` calls are respected during reconnection attempts.
19
+
20
+
```python
21
+
ws = mistapi.websockets.sites.DeviceStatsEvents(
22
+
apisession,
23
+
site_ids=["<site_id>"],
24
+
auto_reconnect=True,
25
+
max_reconnect_attempts=5,
26
+
reconnect_backoff=2.0
27
+
)
28
+
ws.connect(run_in_background=True)
29
+
```
30
+
31
+
---
32
+
33
+
### 2. API CHANGES (OpenAPI 2602.1.7)
34
+
35
+
Updated to mist_openapi spec version 2602.1.7.
36
+
37
+
#### **Insights API**
38
+
-**`getSiteInsightMetrics()`** — Now uses `metrics` as a query parameter instead of a path parameter
39
+
-**`getSiteInsightMetricsForAP()`** — New function to retrieve insight metrics for a specific AP
40
+
-**`getSiteInsightMetricsForClient()`** — Changed `metric` path parameter to `metrics` query parameter
41
+
-**`getSiteInsightMetricsForGateway()`** — Changed `metric` path parameter to `metrics` query parameter
0 commit comments