serialize

Function serialize 

Source
pub fn serialize(cmd: &Command) -> Vec<u8> 
Expand description

Serialize a command to wire format (bytes ending with \r).

Converts a Command into the byte sequence expected by the radio’s CAT protocol. Each serialized command ends with a carriage return.