def format_packet(command):
        """Format packet to be sent."""
        frame_header = b"\xaa"
        verify = b"\x0b"
        send_delim = b"\xbb"
        return frame_header + command.ljust(17, b"\x00") + verify + send_delim
def format_packet ( command ) : frame_header = b"\xaa" verify = b"\x0b" send_delim = b"\xbb" return frame_header + command . ljust ( 17 , b"\x00" ) + verify + send_delim
Format packet to be sent.