class MQTT::Packet::Pubcomp

Class representing an MQTT Publish Complete packet

def encode_body

Get serialisation of packet's body
def encode_body
  encode_short(@id)
end

def inspect

Returns a human readable string, summarising the properties of the packet
def inspect
  "\#<#{self.class}: 0x%2.2X>" % id
end

def parse_body(buffer)

Parse the body (variable header and payload) of a packet
def parse_body(buffer)
  super(buffer)
  @id = shift_short(buffer)
  return if buffer.empty?
  raise ProtocolException, 'Extra bytes at end of Publish Complete packet'
end