-
Notifications
You must be signed in to change notification settings - Fork 95
Compiling with platformio #30
Comments
Hi,
sorry I do not know platfromio. FlashStringHelper is specific for the
ArduinoIDE environment.
Because your problems are only in the error handling part, comment out the
lines or exchange them with your own implementation.
--Andreas.
…-----Original-Nachricht-----
Betreff: [ATrappmann/PN5180-Library] Compiling with platformio (#30)
Datum: 2020-06-13T21:21:54+0200
Von: "Mopele" <[email protected]>
An: "ATrappmann/PN5180-Library" <[email protected]>
Hey, I have downladed the libary via platformio and also as the zip from
github. When I upload the file via the arduino IDE everything runs fine,
but everytime I use platformio I get those errors. Maybe you know what to
do!
Here are the errors. I am using a slightly modified version of the example:
In file included from src\main.cpp:13:0:
C:/Users/Moritz Pfennig/.platformio/lib/PN5180
Library_ID5843/PN5180ISO15693.h:65:9: error: '__FlashStringHelper' does not
name a type
const __FlashStringHelper *strerror(ISO15693ErrorCode errno);
^
src\main.cpp: In function 'void loop()':
src\main.cpp:145:24: error: 'class PN5180ISO15693' has no member named
'strerror'
Serial.println(nfc.strerror(rc));
^
*** [.pio\build\esp32dev\src\main.cpp.o] Error 1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#30> , or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEVOSHXS5QNL7YA7632AG43RWPGVBANCNFSM4N5DRLNQ>
.
[ { "@context": "http://schema.org", "@type": "EmailMessage",
"potentialAction": { "@type": "ViewAction", "target":
"#30", "url":
"#30", "name": "View
Issue" }, "description": "View this Issue on GitHub", "publisher": {
"@type": "Organization", "name": "GitHub", "url": "https://github.com" } }
]
|
Yes, that is exactly what I did. I just commented the lines out. |
I have a platformio project that uses this library if you need a reference: https://gitlab.com/bettse/iclassreader/-/tree/PN5180 |
Hey, I have downladed the libary via platformio and also as the zip from github. When I upload the file via the arduino IDE everything runs fine, but everytime I use platformio I get those errors. Maybe you know what to do!
Here are the errors. I am using a slightly modified version of the example:
In file included from src\main.cpp:13:0:
C:/Users/Moritz Pfennig/.platformio/lib/PN5180 Library_ID5843/PN5180ISO15693.h:65:9: error: '__FlashStringHelper' does not name a type
const __FlashStringHelper *strerror(ISO15693ErrorCode errno);
^
src\main.cpp: In function 'void loop()':
src\main.cpp:145:24: error: 'class PN5180ISO15693' has no member named 'strerror'
Serial.println(nfc.strerror(rc));
^
*** [.pio\build\esp32dev\src\main.cpp.o] Error 1
The text was updated successfully, but these errors were encountered: