Skip to main content

capture_reading

Function capture_reading 

Source
pub fn capture_reading<const N: usize>(
    list: &GetListResponse<'_>,
    source: &Source<'_>,
    slot: Slot,
    destination: &mut Profile<'_, N>,
) -> Result<Capture, ReadError>
Expand description

Record the register of a push reading at slot.

Use it for meters that send a GetListResponse without a calendar time. The gateway’s trusted clock places the reading: slot.received_utc must lie in [reference, reference + period). Call it with the first reading received in each slot.