Sha256: adf82f433a9f09dd675ca8d6b91897160dbcf6df82a0116f1dfb051a6779c02e
Contents?: true
Size: 524 Bytes
Versions: 5
Compression:
Stored size: 524 Bytes
Contents
require 'rubygems' require 'serialport' require 'json' require "./serialport_mock.rb" mock = SerialDeviceMock.new('/dev/pts/3', 9600, 100) while true testData = {"data" => [rand(0..100), rand(700..1100), rand(0..500)], "key" => "500d81aafe637717a52f8650e54206e64da33d27" }.to_json testData2 = {"data" => [rand(0..100), rand(700..1100), rand(0..500)], "key" => "f937c37e949d9efa20d2958af309235c73ec039a" }.to_json mock.write(testData) mock.read() sleep(5) mock.write(testData2) mock.read() sleep(5) end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
ardtweeno-0.6.0 | test/debug/run_mock |
ardtweeno-0.5.0 | test/debug/run_mock |
ardtweeno-0.3.1 | test/debug/run_mock |
ardtweeno-0.3.0 | test/debug/run_mock |
ardtweeno-0.2.5 | test/run_mock |