O'Reilly logo

Near Field Communication with Android Cookbook by Vitor Subtil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling hotel room access with Arduino and NFC – Part 2

In this recipe, we create an Arduino application that will read the encrypted data from the NFC card and compare it with the room number it has been configured to.

Getting ready

We assume that an Arduino ship has been connected properly with an Adafruit NFC shield and that the Arduino software and drivers are correctly installed and working.

How to do it...

We will retrieve the data from the tag and compare it with the encrypted room number:

  1. Download the arduino_NFC library from https://github.com/odopod/arduino_NFC.
  2. Download AESLib from https://github.com/DavyLandman/AESLib.
  3. Download the arduino-base64 library from https://github.com/adamvr/arduino-base64.
  4. Navigate to the Arduino software installation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required