Skip to content

Could not write or read over Serial port #7

Open
@francescochiapello

Description

@francescochiapello

Hi @jpliew, I'm not able to read or write data while using the library through the serial port with baud 9600.
Do you have any suggestion on how to handle this problem? It's necessary to me to exchange text data between Arduino and my external code alongside the library execution that reads Wiegand data.

Thanks for your support.

// ...

void setup() {
  Serial.begin(9600);
  wg1.begin(1,2,Reader1D0Interrupt,Reader1D1Interrupt);
}

void loop() {
  if (Serial.available() > 0) {
    String command = Serial.readString();
    
    Serial.println(command);
  }

  if(wg1.available())
  {
    Serial.println(wg1.getCode());
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions