Skip to main content

decode_setpoint_reference_at

Function decode_setpoint_reference_at 

Source
pub fn decode_setpoint_reference_at(
    data: &[u8],
    offset: usize,
) -> Result<(BACnetObjectPropertyReference, usize), Error>
Expand description

Decode the BACnetSetpointReference frame at offset holding a reference: opening context tag 0, the bare members, which must fill the frame, and the closing tag. Returns the reference and the offset just past the closing tag; what follows is the caller’s to judge.

A frame with nothing inside (0x0E 0x0F) is the member present but holding no object or property, which this refuses like any other incomplete reference. The value without a reference has no frame at all; see decode_setpoint_reference.