Skip to main content

serve_meter

Function serve_meter 

Source
pub fn serve_meter(
    socket: TcpStream,
    protocol: Protocol,
    history: VirtualMeter,
    on_profile_read: impl Fn(Instant),
) -> Result<()>
Expand description

Serve one loopback session for up to four seconds: a public-client DLMS association or one SML request. The caller owns the listener. The callback observes a selected profile read and receives the session deadline.