Sha256: 56e00cb2b60ca848919baf31fe9e146086df9ce16455bb67e1fb160a637d09d8

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 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"

      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

6 entries across 6 versions & 1 rubygems

Version Path
lifx_dash-0.3.1 lib/lifx_dash/snoop.rb
lifx_dash-0.3.0 lib/lifx_dash/snoop.rb
lifx_dash-0.2.3 lib/lifx_dash/snoop.rb
lifx_dash-0.2.2 lib/lifx_dash/snoop.rb
lifx_dash-0.2.1 lib/lifx_dash/snoop.rb
lifx_dash-0.2.0 lib/lifx_dash/snoop.rb