Method: OpenC3::FixedProtocol#read_packet
- Defined in:
- lib/openc3/interfaces/protocols/fixed_protocol.rb
#read_packet(packet) ⇒ Object
Set the received_time, target_name and packet_name which we recorded when we identified this packet. The server will also do this but since we know the information here, we perform this optimization.
58 59 60 61 62 63 |
# File 'lib/openc3/interfaces/protocols/fixed_protocol.rb', line 58 def read_packet(packet) packet.received_time = @received_time packet.target_name = @target_name packet.packet_name = @packet_name return packet end |