Function wlancfg_lib::telemetry::serve_telemetry
source · pub fn serve_telemetry(
monitor_svc_proxy: DeviceMonitorProxy,
cobalt_1dot1_proxy: MetricEventLoggerProxy,
new_cobalt_1dot1_proxy: CreateMetricsLoggerFn,
inspect_node: Node,
external_inspect_node: Node,
persistence_req_sender: PersistenceReqSender
) -> (TelemetrySender, impl Future<Output = ()>)
Expand description
Create a struct for sending TelemetryEvent, and a future representing the telemetry loop.
Every 15 seconds, the telemetry loop will query for MLME/PHY stats and update various time-interval stats. The telemetry loop also handles incoming TelemetryEvent to update the appropriate stats.