2016-01-08 21:54:46 +03:00
|
|
|
### wolfSSL with Arduino
|
|
|
|
|
2016-01-08 22:07:35 +03:00
|
|
|
##### Reformatting wolfSSL as a compatible Arduino Library
|
2016-01-08 21:54:46 +03:00
|
|
|
This is a shell script that will re-organize the wolfSSL library to be
|
|
|
|
compatible with Arduino projects. The Arduino IDE requires a library's source
|
|
|
|
files to be in the library's root directory with a header file in the name of
|
|
|
|
the library. This script moves all src/ files to the root wolfssl directory and
|
|
|
|
creates a stub header file called wolfssl.h.
|
|
|
|
|
2016-09-15 01:53:06 +03:00
|
|
|
Step 1: To configure wolfSSL with Arduino, enter the following from within the
|
2016-01-08 21:54:46 +03:00
|
|
|
wolfssl/IDE/ARDUINO directory:
|
|
|
|
|
2016-09-15 01:53:06 +03:00
|
|
|
./wolfssl-arduino.sh
|
|
|
|
|
|
|
|
|
|
|
|
Step 2: Edit <wolfssl-root>/wolfssl/wolfcrypt/settings.h uncomment the define for
|
|
|
|
WOLFSSL_ARDUINO
|
|
|
|
|
|
|
|
also uncomment the define for INTEL_GALILEO if building for that platform
|
2016-01-08 22:07:35 +03:00
|
|
|
|
|
|
|
#####Including wolfSSL in Arduino Libraries (for Arduino version 1.6.6)
|
|
|
|
1. Copy the wolfSSL directory into Arduino/libraries (or wherever Arduino searches for libraries).
|
|
|
|
2. In the Arduino IDE:
|
|
|
|
- Go to ```Sketch > Include Libraries > Manage Libraries```. This refreshes your changes to the libraries.
|
|
|
|
- Next go to ```Sketch > Include Libraries > wolfSSL```. This includes wolfSSL in your sketch.
|