def send_packet(self, packet):
if self.log_packet_level:<EOL><INDENT>logger.log(self.log_packet_level, "<STR_LIT>", packet)<EOL><DEDENT>serialised = packet.serialise_packet()<EOL>self.event_handler.broadcast_event("<STR_LIT>", serialised)<EOL>self.send_raw(serialised)<EOL>
Sends a message to the Pebble.

:param packet: The message to send.
:type packet: .PebblePacket