File: nfc

package info (click to toggle)
ruby-nfc 3.1.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 160 kB
  • sloc: ansic: 304; ruby: 129; makefile: 5
file content (11 lines) | stat: -rwxr-xr-x 160 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby

require 'rubygems'
require 'nfc'
nfc = NFC.instance

puts "Connected to NFC reader: #{nfc.device.name}"
puts
nfc.find do |tag|
  p tag
end