def send_raw_packet(self, packet: str):
data = packet + '<STR_LIT:\r\n>'<EOL>log.debug('<STR_LIT>', repr(data))<EOL>self.transport.write(data.encode())<EOL>
Encode and put packet string onto write buffer.