pub fn parse_obis(value: &str) -> Option<(u32, u32)>Expand description
Parse an OBIS code of the form A-B:C.D.E[*F] and return (C, D).
OBIS structure (IEC 62056-61, BDEW/DVGW usage):
A— medium (1 = electricity, 7 = gas, 6 = heat, …)B— channelC— measurement type (1 = +A active energy import, 2 = -A active energy export, 3 = +R reactive import, 4 = -R reactive export, …)D— measurement mode (8 = total time integral, 9 = billing-period integral, 29 = previous-billing-period partial value for interval measurements, 5 = actual/instantaneous value, …)E— rate/tariffF— optional billing period marker
Returns None when the value doesn’t fit the shape. Whitespace-tolerant.