paulo-raca/YetAnotherArduinoWiegandLibrary

Unable to copile

Closed this issue · 1 comments

Hello.

Here is my simply project, but it will not compile, it shows the common collect2.exe: error: ld returned 5 exit status.

#include <Wiegand.h>

int code_type;
int entered_code;

WIEGAND wg;

void setup() {
  Serial.begin(9600);  
  wg.begin();

 Serial.println("Waiting for keypad data");
}

void loop() {
  if (wg.available() ) {
    code_type = wg.getWiegandType();
    entered_code = wg.getCode();
     
    if (code_type == 4) {
      Serial.print("Key pressed :");
    }
    else {
      Serial.print("Card Swiped :");
    }
    Serial.println(entered_code,DEC);
  }
}

Can you see what I have done wrong ?

I don't think that's the right wiegand library -- Maybe you mean this one? https://github.com/monkeyboard/Wiegand-Protocol-Library-for-Arduino