Files
Meshtastic-Android/androidApp/src
James Rich 1abdd1a143 Phase 2b: Add getNodeDetails and getMeshMetrics App Functions
- Extend AiFunctionProvider with two new suspend methods for advanced queries
- getNodeDetails: Retrieve per-node telemetry (16 fields) by hex or user ID
- getMeshMetrics: Aggregate mesh statistics and compute health score
- Add result types (GetNodeDetailsResult, GetMeshMetricsResult) and data models
- Add response models (@AppFunctionSerializable) for KSP serialization
- Both methods support timeout protection and rate limiting
- Health score calculation: 50 base + 50 online ratio, clamped 0-100
- All JVM, Android, detekt, spotless checks passing

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-21 15:36:54 -05:00
..