(self)
return header + self.payload
Form Blocksat Packet
Form Blocksat Packet
Form Blocksat Packet
def pack(self):
        """Form Blocksat Packet
        """
        # Assert the "more fragments" (MF) bit if this isn't the last fragment
        octet_0 = API_TYPE_MORE_FRAG if self.more_frags else API_TYPE_LAST_FRAG
        header = struct.pack(HEADER_FORMAT, octet_0, self.chan_num,
                             self.frag_num, self.seq_num)
        return header + self.payload
def pack ( self ) : # Assert the "more fragments" (MF) bit if this isn't the last fragment octet_0 = API_TYPE_MORE_FRAG if self . more_frags else API_TYPE_LAST_FRAG header = struct . pack ( HEADER_FORMAT , octet_0 , self . chan_num , self . frag_num , self . seq_num ) return header + self . payload