Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Compiling with platformio #30

Open
Mopele opened this issue Jun 13, 2020 · 3 comments
Open

Compiling with platformio #30

Mopele opened this issue Jun 13, 2020 · 3 comments

Comments

@Mopele
Copy link

Mopele commented Jun 13, 2020

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

@ATrappmann
Copy link
Owner

ATrappmann commented Jun 15, 2020 via email

@Mopele
Copy link
Author

Mopele commented Jun 15, 2020

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.
Another question I have concernig this libary is, if it would be possible to get the id as only numbers? Rightnow you get the id as a somehow weird format.

@bettse
Copy link
Contributor

bettse commented Sep 15, 2020

I have a platformio project that uses this library if you need a reference: https://gitlab.com/bettse/iclassreader/-/tree/PN5180

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants