Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: call of overloaded 'requestFrom(int, unsigned int)' is ambiguous #131

Closed
freshrebel opened this issue Aug 1, 2022 · 2 comments
Closed
Assignees
Labels
PN532 Label for PN532 UAY Unassigned yet

Comments

@freshrebel
Copy link

Hi

We loaded your library in the arduino libraries, started up the example ISO14443A_uid, but we get the following error:
Compiling library "PN532_I2C"
"C:\Users\Arno\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega4809 -DF_CPU=16000000L -DARDUINO=10820 -DARDUINO_AVR_NANO_EVERY -DARDUINO_ARCH_MEGAAVR -DMILLIS_USE_TIMERB3 -DNO_EXTERNAL_I2C_PULLUP "-IC:\Users\Arno\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino/api/deprecated" "-IC:\Users\Arno\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\cores\arduino" "-IC:\Users\Arno\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\variants\nona4809" "-IC:\Users\Arno\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src" "-IC:\Users\Arno\Documents\Arduino\libraries\PN532_I2C" "-IC:\Users\Arno\Documents\Arduino\libraries\PN532" "-IC:\Users\Arno\Documents\Arduino\libraries\NDEF" "C:\Users\Arno\Documents\Arduino\libraries\PN532_I2C\PN532_I2C.cpp" -o "C:\Users\Arno\AppData\Local\Temp\arduino_build_657732\libraries\PN532_I2C\PN532_I2C.cpp.o"
C:\Users\Arno\Documents\Arduino\libraries\PN532_I2C\PN532_I2C.cpp: In member function 'int8_t PN532_I2C::readAckFrame()':
C:\Users\Arno\Documents\Arduino\libraries\PN532_I2C\PN532_I2C.cpp:196:73: error: call of overloaded 'requestFrom(int, unsigned int)' is ambiguous
if (_wire->requestFrom(PN532_I2C_ADDRESS, sizeof(PN532_ACK) + 1)) {
^
In file included from C:\Users\Arno\Documents\Arduino\libraries\PN532_I2C\PN532_I2C.h:8:0,
from C:\Users\Arno\Documents\Arduino\libraries\PN532_I2C\PN532_I2C.cpp:5:
C:\Users\Arno\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:61:12: note: candidate: virtual size_t TwoWire::requestFrom(uint8_t, size_t)
size_t requestFrom(uint8_t, size_t);
^~~~~~~~~~~
C:\Users\Arno\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire\src/Wire.h:63:12: note: candidate: size_t TwoWire::requestFrom(int, int)
size_t requestFrom(int, int);
^~~~~~~~~~~
Bibliotheek Wire op versie 1.0 in map: C:\Users\Arno\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\Wire wordt gebruikt
Bibliotheek PN532_I2C in map: C:\Users\Arno\Documents\Arduino\libraries\PN532_I2C (legacy) wordt gebruikt
Bibliotheek PN532 in map: C:\Users\Arno\Documents\Arduino\libraries\PN532 (legacy) wordt gebruikt
Bibliotheek NDEF in map: C:\Users\Arno\Documents\Arduino\libraries\NDEF (legacy) wordt gebruikt
exit status 1
Fout bij het compileren voor board Arduino Nano Every

image

can somebody help us?

Kind regards
Arno Deckx

@MatthewJeffson MatthewJeffson added UAY Unassigned yet PN532 Label for PN532 and removed UAY Unassigned yet labels Oct 9, 2024
@Cincinnatu
Copy link

Hello, has this issue been resolved? If not, please provide more information.

@Lesords
Copy link

Lesords commented Nov 4, 2024

Hello,

I'm going to close this issue, feel free to re-open it if you have any other questions.

[Autocommentary]

@Lesords Lesords closed this as completed Nov 4, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PR Assemble Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PN532 Label for PN532 UAY Unassigned yet
Projects
Status: Done
Development

No branches or pull requests

4 participants