I have a T-Beam ESP32 based board and I'm having a weird compilation error. It used to work in the past (aprox. in march 2021), but I had to change laptops and now it gives me this error:
C:\Users\ENGENHARIA-02\Documents\Arduino\libraries\AESLib-2.2.1\src\AES.cpp: In member function 'uint8_t AES::getrandom()':
C:\Users\ENGENHARIA-02\Documents\Arduino\libraries\AESLib-2.2.1\src\AES.cpp:351:26: error: 'time' was not declared in this scope
srand ((unsigned int)time(NULL));
^~~~
C:\Users\ENGENHARIA-02\Documents\Arduino\libraries\AESLib-2.2.1\src\AES.cpp:351:26: note: suggested alternative: 'size'
srand ((unsigned int)time(NULL));
^~~~
size
exit status 1
Erro compilando para a placa T-Beam
I thought it would be a problema with my code, so I opened a new one and just included the AESLib.h, as follows:
#include <AESLib.h> // Encriptação AES
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Same problem.
Am I missing something? In the meantime, I'll rollback a few versions of the library and see if it comes back to life.
Library's version is 2.2.1 and Arduino IDE's 1.8.15
Hello!
I have a T-Beam ESP32 based board and I'm having a weird compilation error. It used to work in the past (aprox. in march 2021), but I had to change laptops and now it gives me this error:
I thought it would be a problema with my code, so I opened a new one and just included the AESLib.h, as follows:
Same problem. Am I missing something? In the meantime, I'll rollback a few versions of the library and see if it comes back to life. Library's version is 2.2.1 and Arduino IDE's 1.8.15
Thank you in advance!