class MQTT::Packet::Pingreq
Class representing an MQTT
Ping Request packet
Public Class Methods
new(args={})
click to toggle source
Create a new Ping Request packet
Calls superclass method
MQTT::Packet::new
# File lib/mqtt/packet.rb, line 1021 def initialize(args={}) super(args) end
Public Instance Methods
parse_body(buffer)
click to toggle source
Check the body
Calls superclass method
MQTT::Packet#parse_body
# File lib/mqtt/packet.rb, line 1026 def parse_body(buffer) super(buffer) unless buffer.empty? raise ProtocolException.new("Extra bytes at end of Ping Request packet") end end