map_protocol

Function map_protocol 

Source
fn map_protocol(reflector_type: &str) -> Option<&'static str>
Expand description

Maps Pi-Star’s protocol type labels to the internal protocol identifiers used in the reflectors table.

  • "REF""dplus" (REF reflectors use the DPlus protocol)
  • "XRF""dextra" (XRF reflectors use the DExtra protocol)
  • "DCS""dcs" (DCS reflectors use the DCS protocol)

Returns None for unrecognised types so the caller can skip them.