Skip to main content

encode_timestamp

Function encode_timestamp 

Source
pub fn encode_timestamp(
    buf: &mut BytesMut,
    tag_number: u8,
    ts: &BACnetTimeStamp,
)
Expand description

Encode a BACnetTimeStamp wrapped in a context opening/closing tag pair.

The outer tag_number is the context tag of the enclosing field. Inside, the CHOICE variant uses its own context tag (0=Time, 1=SequenceNumber, 2=DateTime).