Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

When the codes are compiled, the error says:

fatal error: sha256.h: No such file or directory

I try to install sha256 library from Sketch > Include Library > Manage Libraries, but there are no such library listed.

Where can I get the included library?

Without having more information like the names of some of the functions being called that need this header file it's hard to pin it down. There are several Arduino libraries out there that have a sha256.h header file.

You might try:

ESP8266-Arduino-cryptolibs - not available through the library manager, so you'd copy this manually into the Arduino libraries folder

"AWS-SDK-ESP8266" - available through the library manager

There are others that aren't ESP8266-specific; a simple Google search for 'sha256.h esp8266' or 'sha256.h arduino' will find them.

I tried "Cryptosuite" - not available through the library manager, and it solved the problem – Steven Lee Jul 15, 2018 at 4:50

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.