class MQTT::SN::Packet::Willtopicresp
Constants
- DEFAULTS
Attributes
return_code[RW]
Public Instance Methods
encode_body()
click to toggle source
# File lib/mqttbridge/sn/packet.rb, line 683 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 691 def parse_body(buffer) self.return_code, _ignore = buffer.unpack('C') end