class LXP::Packet::ReadInput
Input packets are a stream of values related to energy flows (inputs?)
Public Class Methods
new()
click to toggle source
Calls superclass method
LXP::Packet::Base::new
# File lib/lxp/packet/read_input.rb, line 9 def initialize super self.tcp_function = TcpFunctions::TRANSLATED_DATA self.device_function = DeviceFunctions::READ_INPUT self.data_length = 18 end
parse(ascii)
click to toggle source
Calls superclass method
LXP::Packet::Base::parse
# File lib/lxp/packet/read_input.rb, line 18 def self.parse(ascii) i = super if i.packet_length != 111 || i.data_length != 97 raise 'unexpected packet length' end i end