code: def dump(self):
          
          print "-----MqttPkt------"
          print "command = ", self.command
          print "have_remaining = ", self.have_remaining
          print "remaining_count = ", self.remaining_count
          print "mid = ", self.mid
          print "remaining_mult = ", self.remaining_mult
          print "remaining_length = ", self.remaining_length
          print "packet_length = ", self.packet_length
          print "to_process = ", self.to_process
          print "pos = ", self.pos
          print "payload = ", self.payload
          print "------------------"
docs: Print packet content.