Sha256: dcf39938d44f20a50cfb4626d387627226731ac356968e153a6567a2e05d84dc
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require 'applix' $:.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'gom/sensor_port' Defaults = { :verbose => false } def usage puts "#{__FILE__} serve <gom sensor node URL>" end Applix.main(ARGV, Defaults) do any { usage } # example: gom-sensor-port serve /gom/sensors/udp handle(:serve) do |*args, options| puts "args: #{args.inspect}" puts "opts: #{options}" path, _ = *args _, node_path = (Gom::Remote::Connection.init path) gsp = Gom::SensorPort.new(node_path, options) gsp.listen end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gom-sensor-ports-0.2.3 | bin/gom-sensor-port |