def serialise_packet(self):
if not hasattr(self, '<STR_LIT>'):<EOL><INDENT>raise ReferenceError("<STR_LIT>")<EOL><DEDENT>serialised = self.serialise()<EOL>return struct.pack('<STR_LIT>', len(serialised), self._Meta['<STR_LIT>']) + serialised<EOL>
Serialise a message, including framing information inferred from the ``Meta`` inner class of the packet.
``self.Meta.endpoint`` must be defined to call this method.

:return: A serialised message, ready to be sent to the Pebble.