You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
Hello,
i get errors compiling your code. Which library "sha256.h" do you exactly use?
IRController:201: error: 'Sha256' was not declared in this scope
Sha256.initHmac((uint8_t*)key.c_str(), key.length()); // key, and length of key in bytes
IRController:206: error: 'HASH_LENGTH' was not declared in this scope
String computedSignature = bin2hex(hash, HASH_LENGTH);
exit status 1
'Sha256' was not declared in this scope
Is this bad, or shall I install this?
Chuong <
[email protected]> schrieb am Fr., 13. Juli 2018, 15:11:
Did you installed Cryptosuite <
https://github.com/jjssoftware/Cryptosuite
>
library on Arduino IDE?
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<
#193 (comment)
>,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/Aef9udGm54K4UIW34VUVQepI6n7pRFUcks5uGJx_gaJpZM4VOm3K
>
I met similar (but not exact) error like yours described in
fatal-error-sha256-h-no-such-file-or-directory
.
After many trials to installed some libraries, I failed.
Lastly, I installed Cryptosuite as guided in the
README
, it worked.
So I think you should install Cryptosuite.
Installing Cryprosuite doesn't help!
C:\Users\schrjude\Downloads\IRController\IRController.ino: In function 'bool validateHMAC(String, String, String, String)':
IRController:201: error: 'Sha256' was not declared in this scope
Sha256.initHmac((uint8_t*)key.c_str(), key.length()); // key, and length of key in bytes
IRController:206: error: 'HASH_LENGTH' was not declared in this scope
String computedSignature = bin2hex(hash, HASH_LENGTH);
exit status 1
'Sha256' was not declared in this scope
Duplicate of
#169
.
Did you install Cryptosuite by "
Add .ZIP Library...
"? It cannot be installed directly from Library Manager.
Go to
Sketch > Include Library
and scroll down to see if "Cryptosuite" library is added or not. If Cryptosuite is
not
added, your installation was
unsuccessful
.
Yes, i did it so.
Now i erased all this libs and reinstalled it. Your programm compiled now ok!
Thank you!