class MQTT::SN::Packet::Willmsgresp

Constants

DEFAULTS

Attributes

return_code[RW]

Public Instance Methods

encode_body() click to toggle source
# File lib/mqttbridge/sn/packet.rb, line 715
def encode_body
  unless return_code.is_a?(Integer)
    raise "return_code must be an Integer"
  end

  [return_code].pack('C')
end
parse_body(buffer) click to toggle source
# File lib/mqttbridge/sn/packet.rb, line 723
def parse_body(buffer)
  self.return_code, _ignore = buffer.unpack('C')
end