Sha256: e99a1ddc5ed5fa0127b3af517ecab2105cdb2c53380b1090e4c51f85ab01de18

Contents?: true

Size: 777 Bytes

Versions: 12

Compression:

Stored size: 777 Bytes

Contents

require 'pio'

data_dump = [
  0x01, 0x80, 0xc2, 0x00, 0x00, 0x0e, 0x01, 0x02, 0x03, 0x04,
  0x05, 0x06, 0x88, 0xcc, 0x02, 0x09, 0x07, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x01, 0x23, 0x04, 0x05, 0x07, 0x00, 0x00,
  0x00, 0x0c, 0x06, 0x02, 0x00, 0x78, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  0x00, 0x00, 0x00, 0x00
].pack('C*')

packet_out = Pio::PacketOut.new(transaction_id: 0x16,
                                buffer_id: 0xffffffff,
                                in_port: 0xffff,
                                actions: Pio::SendOutPort.new(2),
                                data: data_dump)
packet_out.to_binary  # => Packet-Out message in binary format.

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pio-0.16.0 examples/packet_out_new.rb
pio-0.15.2 examples/packet_out_new.rb
pio-0.15.1 examples/packet_out_new.rb
pio-0.15.0 examples/packet_out_new.rb
pio-0.14.0 examples/packet_out_new.rb
pio-0.13.0 examples/packet_out_new.rb
pio-0.12.0 examples/packet_out_new.rb
pio-0.11.2 examples/packet_out_new.rb
pio-0.11.1 examples/packet_out_new.rb
pio-0.11.0 examples/packet_out_new.rb
pio-0.10.1 examples/packet_out_new.rb
pio-0.10.0 examples/packet_out_new.rb