Sha256: 244d5c29b7b1fd312d346de2cfd5730f7e0b4b0e82af1961faa24019dd322279
Contents?: true
Size: 610 Bytes
Versions: 3
Compression:
Stored size: 610 Bytes
Contents
module LifxDash class Snoop attr_reader :iface def initialize(network_iface_id) @iface = network_iface_id end def run puts "Snooping for dash button packets on #{iface} ... press [CTRL-c] to stop\n\n" puts " * wait for the network to quiet down, before pressing the button" puts " * you might get more than 1 ARP packet when pressing, use the MAC address that occurs once\n\n" LifxDash::Capturer.new(iface).listen do |pkt, mac| LOGGER.info "possible Dash button press from MAC address: #{mac} -- pkt summary: #{pkt.peek}" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lifx_dash-0.1.3 | lib/lifx_dash/snoop.rb |
lifx_dash-0.1.1 | lib/lifx_dash/snoop.rb |
lifx_dash-0.1.0 | lib/lifx_dash/snoop.rb |