Code: Select all
require 'socket'
require 'date'
hostname = '192.168.1.4'
port = 4567
s = TCPSocket.new(hostname, port)
for n in 1..10
str = 'ID:1234567890|Antenna:1|Timestamp:' + DateTime.now.strftime('%Q') + "\n"
puts str
s.write(str)
end
s.close
Anyway, try a newline with your scripts, or try that ruby script and let us know if it works. I'm pretty sure that is your issue, though.
-Matt