error message

hello, I have installed a "Seeed RFID" library in my program and I got this error message can you help me please

In file included from Projet_RFID.ino:3:0:
C:\Users\FOURDRAIN1\Documents\Arduino\libraries\RFID_Library-master/SeeedRFID.h:88:10: error: 'void SeeedRFID::listen()' cannot be overloaded
void listen();
^
C:\Users\FOURDRAIN1\Documents\Arduino\libraries\RFID_Library-master/SeeedRFID.h:86:10: error: with 'boolean SeeedRFID::listen()'
boolean listen();
^
Erreur lors de la compilation.

I look into my crystal ball and see that you have done... wait...hold on, I see blackness, nothing but blackness. We have no idea how to solve your problem because we can't see it. Please post your code using code tags. The code tags make the code look

like this

when posting source code files. It makes it easier to read, and can be copied with a single mouse click. Also, if you don't do it, some of the character sequences in the code can be misinterpreted by the forum code as italics or funny emoticons.

Unless the sketch is too large, it's better if you post your code, rather than attach it. When it's attached, we have to download it, create a folder then open your code in our IDE. Or perhaps open it in WordPad, which isn't very good for looking at code. And afterwards, the folder remains unless we navigate to the "Temp" folder and manually remove it. It's much easier to just view the code in your post.

Many questions can be answered by reading the documentation which is provided with the IDE, available under the help tab, or online here.

Yeah. you really need to look into how to ask your question well. Stack Overflow has a great guide:

Promise you'll check it out?

Okay. It looks like you might be using this library:

The problem is there are two definitions for the listen method. One that returns a boolean (line 86), the other that returns void (line 88). The compiler is telling you it can't do that (C++, the language behind Arduino sketches, doesn't allow two methods to differ only in their return type).

If you remove line 88 from SeeedRFID.h (in the library you installed) you'll probably be good to go. Line 88 is the one that looks like this:

void listen();

Not my library though, so no promises. But now you know how to ask a better question next time.

Good luck!

#include <SoftwareSerial.h>
#include <SeeedRFID.h>

#define RFID_RX_PIN 0
#define RFID_TX_PIN 1

SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN);

void setup()
{
Serial.begin(9600);
Serial.println(" RFID Reader Check ");
pinMode(11, OUTPUT) ;
pinMode(10, OUTPUT) ;
}

void loop() {
if(RFID.isAvailable())
{

Serial.print("RFID card number: ");
Serial.println(RFID.cardNumber());

if ( RFID.cardNumber() == 2098445032)
{
digitalWrite(10,HIGH);
digitalWrite(11, LOW);
}
else
{
digitalWrite(11, HIGH);
digitalWrite(10,LOW);
}
}
}

#include <SoftwareSerial.h>
#include <SeeedRFID.h>

#define RFID_RX_PIN 0
#define RFID_TX_PIN 1



SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN);

It is stupid to be doing software serial on the hardware serial pins.

It is, in fact, impossible to do software serial on the hardware serial pins while using them for hardware serial.

@Paul_Martinsen 's crystal ball was right: Add a listen() method by nicolsc · Pull Request #5 · Seeed-Studio/RFID_Library · GitHub

I commented out the lines about listen method and it compiles with no complaint.

But I have a problem to upload to my board:

warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed

Is your crystal ball still available?


I am using the Arduino IDE 1.6.8 to upload their example code on a Wemos D1 mini

Is your crystal ball still available?

Post your code AND a schematic, so we don't need balls, brass, crystal or otherwise, to answer your questions.

PaulS:
Post your code AND a schematic, so we don't need balls, brass, crystal or otherwise, to answer your questions.

None needed for that, you are right. As written: the code is from their example as I assume it to be the simplest suppose to run:

// RFID_UART.ino

#include <SoftwareSerial.h>
#include <SeeedRFID.h>

#define RFID_RX_PIN 10
#define RFID_TX_PIN 11

#define TEST

SeeedRFID RFID(RFID_RX_PIN, RFID_TX_PIN);
RFIDdata tag;

void setup() {
    Serial.begin(57600);
    Serial.println("Hello, double bk!");
}

void loop() { 
    if(RFID.isAvailable()){
        tag = RFID.data();
        Serial.print("RFID card number: ");
        Serial.println(RFID.cardNumber());
#ifdef TEST
    Serial.print("RFID raw data: ");
    for(int i=0; i<tag.dataLen; i++){
        Serial.print(tag.raw[i], HEX);
        Serial.print('\t');
        }
#endif
    }
}

The schematics as well:

            +-----------+
++++++++----|VCC      T1|----
|  +++++----|GND      T2|----
|  | |++----|TX      SER|----
|  | |  ----|RX      LED|----   
|  | |  ----|W0     BEEP|----
|  | |  ----|W1      GND|----
|  | |      +-----------+
|  | \___________________________________
|  |_____________________________        |
|                                |       |
|                              + + + + + + + +  + + + + + + + +
|                              | | | | | | | |  | | | | | | | |
|                              | | | | | | | |  | | | | | | | |
|            +-----------------|-|-|-|-|-|-|-|--|-|-|-|-|-|-|-|-+
|            |                 x-x-x-x-x-x-x-x  x-x-x-x-x-x-x-x |
|            |              xxx                                 |
|       +--------+          xxx    --- ---    .............     |
|       |        |                | - x + |  ' |  ||\ |.-. '    +
|       |        |          ^      --- ---   | |__|| \|._. |     x
|       |        |        <+++>    ARDUINO   '.............'      +
|       +--------+          V                                     |
|            |            _____                       ++-++   xx  |
|            |           <_____>                      +-O-+   xx  |
|            |                                        ++-++   xx  |
|            |+--++--                                             |
|            ||||++--                  +---------------------+    |
|            |+--++--                  |                     |    |
|            |                         |                     |    |
|         ++------+                    +---------------------+    |
|         ++      |                                               +
|         ++      |          +-+ +-+                             x
|         ++------+          +-+ +-+   x-x-x-x-x-x x-x-x-x-x-x  +
|            +-------------------------|-|-|-|-|-|-|-|-|-|-|-|--+
|                                      | | | | | | | | | | | |
|                                      | | | | | | | | | | | |
|                                      + + + + + + + + + + + +
|____________________________________________|