Skip to main content

decode_color_command_value

Function decode_color_command_value 

Source
pub fn decode_color_command_value(
    data: &[u8],
) -> Result<BACnetColorCommand, Error>
Expand description

Decode a BACnetColorCommand that fills data, as a WriteProperty of Color_Command carries it.

Fails as decode_color_command does, and with Error::Decoding when octets follow the last field. A field too wide for its type is Error::OutOfRange only when the rest of data is one well-formed command, so a broken input is always reported as broken.