Documentation Center
3. Install the RAK13600-PN532 library by clicking the link highlighted by red box, as shown in Figure 11.
Figure 11: Getting the RAK13600-PN532 Library
4. You will be directed to the Library Manager then you have to click install.
nfc
.
PrintHex
(
uid
,
uidLength
);
if
(
uidLength
==
4
)
{
// We probably have a Mifare Classic card ...
uint32_t
cardid
=
uid
[
0
];
cardid
<<=
8
;
cardid
|=
uid
[
1
];
cardid
<<=
8
;
cardid
|=
uid
[
2
];
cardid
<<=
8
;
cardid
|=
uid
[
3
];
Serial
.
(
"Seems to be a Mifare Classic card #"
);
Serial
.
println
(
cardid
);
}
Serial
.
println
(
""
);
}
delay
(
2000
);
}