class MQTT::SN::Packet::Puback

def encode_body

def encode_body
  raise 'id must be an Integer' unless id.is_a?(Integer)
  raise 'topic_id must be an Integer' unless topic_id.is_a?(Integer)
  [topic_id, id, return_code].pack('nnC')
end

def parse_body(buffer)

def parse_body(buffer)
  self.topic_id, self.id, self.return_code = buffer.unpack('nnC')
end