Skip to main content

encode_action_command

Function encode_action_command 

Source
pub fn encode_action_command(
    buf: &mut BytesMut,
    command: &BACnetActionCommand,
) -> Result<(), Error>
Expand description

Encode one bare BACnetActionCommand, appending to buf.

Fails, leaving buf as it was, when the priority is outside 1..=16 or the value can’t be encoded (see primitives::encode_property_value).