Coder Social home page Coder Social logo

Comments (3)

paulvha avatar paulvha commented on July 19, 2024

I never tested on a NodeMCU but it looks to me that EPC is defined 2 times, once in the board library and another time in the RFID reader library. Looking at the version number of your boards library 1.0.6 that looks "old" to me. The version I have is 2.0.6 (same as I see online). Can you try to update and let me know ?

regards,
Paul

from thingmagic.

alex-prosh avatar alex-prosh commented on July 19, 2024

Hi Paul,
For some reason it seems that the reference I was using contained only 1.06 as the latest version. Changing to to reference the official github with the link:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
Seems to have helped and I was able to install the latest version.

Unfortunately the errors are still present and seem the same but with the new version:

`In file included from C:\Users\prosh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/xtensa/include/xtensa/xtruntime.h:30,
from C:\Users\prosh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:40,
from C:\Users\prosh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/freertos/include/freertos/portable.h:51,
from C:\Users\prosh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:63,
from C:\Users\prosh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6\cores\esp32/Arduino.h:33,
from C:\Users\prosh\AppData\Local\Temp\arduino-sketch-C473708062EFC059CA482FDCA5D4610D\sketch\Example1_Constant_Read_copy_20230204091135.ino.cpp:1:
C:\Users\prosh\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.6/tools/sdk/esp32/include/xtensa/esp32/include/xtensa/config/specreg.h:108:14: error: expected unqualified-id before numeric constant
#define EPC 176
^~~
c:\Users\prosh\Documents\Arduino\libraries\SparkFun_Simultaneous_RFID_Tag_Reader_Library_dec2022\src/SparkFun_UHF_RFID_Reader.h:108:11: note: in expansion of macro 'EPC'
uint8_t EPC[12]; // EPC bytes or part of the EPC to match
^~~

exit status 1

Compilation error: exit status 1`

from thingmagic.

alex-prosh avatar alex-prosh commented on July 19, 2024

I was able to solve this issue by using #UNDEF EPC directly before the EPC[12] section in SparkFun_UHF_RFID_Reader.h

from thingmagic.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.