# NFC + neard -rw-r--r-- 410 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env sh
# install neard

# enable and start neard
systemctl enable --now neard

# enable NFC
nfctool --device nfc0 -1

# poll tag
nfctool -d nfc0 -p
# output should look like:
# Start polling on nfc0 as initiator
# 
# Targets found for nfc0
#   Tags: [ tag0 ]
#   Devices: [ ]

# read the first tag which got read
gdbus introspect --system --dest org.neard --object-path /org/neard/nfc0/tag0/record0