class MQTT::MQTT::MQTT::Packet::Pingresp

Class representing an MQTT Ping Response packet

Public Class Methods

new(args={}) click to toggle source

Create a new Ping Response packet

Calls superclass method
# File lib/mqttbridge/packet.rb, line 1047
def initialize(args={})
  super(args)
end

Public Instance Methods

parse_body(buffer) click to toggle source

Check the body

Calls superclass method
# File lib/mqttbridge/packet.rb, line 1052
def parse_body(buffer)
  super(buffer)
  unless buffer.empty?
    raise ProtocolException.new("Extra bytes at end of Ping Response packet")
  end
end