Add required libraries

Add the following libraries to your PlatformIO project.

MFRC522

  • In the PlatformIO home screen, open Libraries.
  • In the search field, type:
header:MFRC522.h
  • The first result should be MFRC522 by Miguel AndrĂ© Balboa. Click to open it.

PlatformIO add library

  • Click Add to project

PlatformIO add library

  • Click Add

PlatformIO add library

PubSubClient

  • In the PlatformIO home screen, open Libraries.
  • In the search field, type:
PubSubClient
  • The first result should be PubSubClient by Nick O’Leary. Click to open it.

PlatformIO add library

  • Click Add to project
  • Click Add

PlatformIO add library