Closed igormp closed 5 years ago
What’s your board? Genuino, ESP32 or ESP8266?
Odesláno z iPhonu
When I tried to run the example code found in the examples/readme, I got the following error:
Arduino: 1.6.9 (Windows 10), Board: "Arduino/Genuino Uno"
WARNING: Category '"Data Processing"' in library AESLib is not valid. Setting to 'Uncategorized' WARNING: library AESLib claims to run on [esp8266 architecture(s) and may be incompatible with your current board which runs on esp32] architecture(s). C:\Users\imp2\Documents\Arduino\libraries\AESLib\examples\simple\simple.ino: In function 'void aes_init()':
C:\Users\imp2\Documents\Arduino\libraries\AESLib\examples\simple\simple.ino:23:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
encrypt("HELLO WORLD!", aes_iv);
^
C:\Users\imp2\Documents\Arduino\libraries\AESLib\src\AESLib.cpp: In member function 'String AESLib::decrypt(String, byte, byte)':
C:\Users\imp2\Documents\Arduino\libraries\AESLib\src\AESLib.cpp:21:10: error: 'class HardwareSerial' has no member named 'printf'
Serial.printf("Decrypting message %s of length %i \n", msg.c_str(), len);
^
C:\Users\imp2\Documents\Arduino\libraries\AESLib\src\AESLib.cpp: In member function 'void AESLib::decrypt(char, char, byte, byte)':
C:\Users\imp2\Documents\Arduino\libraries\AESLib\src\AESLib.cpp:53:10: error: 'class HardwareSerial' has no member named 'printf'
Serial.printf("Decrypting message %s of length %i \n", msg, msgLen);
^
exit status 1 Error compiling for board Arduino/Genuino Uno. I tried changing the function from Serial.printf to Serial.println to no avail. Any suggestions?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
What’s your board? Genuino, ESP32 or ESP8266?
Genuino Uno, as seen on the log.
Then you should use library for Arduino like https://github.com/DavyLandman/AESLib instead.
Odesláno z iPhonu
What’s your board? Genuino, ESP32 or ESP8266?
Genuino Uno, as seen on the log.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
So you don't support Arduino boards? I see. You could make it clear in your README and on the library manager description (that's where I got it from), since the way you've written it makes it sound like arduino boards are supported.
Well, the library should support AVR-based boards. To me, it fails on including progmem.h which should be part of Arduino Framework (http://www.arduino.cc/en/Reference/PROGMEM)
As a workaround, you could just comment-out the printf lines (printf is not interchangeable with println as the latter does not support formatting).
When I tried to run the example code found in the examples/readme, I got the following error:
I tried changing the function from
Serial.printf
toSerial.println
to no avail. Any suggestions?