2016-01-08 11:54:46 -07:00
|
|
|
### wolfSSL with Arduino
|
|
|
|
|
2016-01-08 12:07:35 -07:00
|
|
|
##### Reformatting wolfSSL as a compatible Arduino Library
|
2016-01-08 11:54:46 -07: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
|
2018-06-08 14:27:54 -07:00
|
|
|
the library. This script moves all src/ files to the `IDE/ARDUINO/wolfSSL`
|
|
|
|
directory and creates a stub header file called `wolfssl.h`.
|
2016-01-08 11:54:46 -07:00
|
|
|
|
2016-09-14 16:53:06 -06:00
|
|
|
Step 1: To configure wolfSSL with Arduino, enter the following from within the
|
2016-01-08 11:54:46 -07:00
|
|
|
wolfssl/IDE/ARDUINO directory:
|
|
|
|
|
2018-06-08 14:27:54 -07:00
|
|
|
`./wolfssl-arduino.sh`
|
2016-09-14 16:53:06 -06:00
|
|
|
|
|
|
|
|
2018-06-08 14:27:54 -07:00
|
|
|
Step 2: Edit `<wolfssl-root>/IDE/ARDUINO/wolfSSL/wolfssl/wolfcrypt/settings.h` uncomment the define for `WOLFSSL_ARDUINO`
|
|
|
|
If building for Intel Galileo platform also uncomment the define for `INTEL_GALILEO`.
|
2016-09-14 16:53:06 -06:00
|
|
|
|
2019-01-07 11:47:33 -08:00
|
|
|
##### Including wolfSSL in Arduino Libraries (for Arduino version 1.6.6)
|
2018-06-08 14:27:54 -07:00
|
|
|
|
|
|
|
1. In the Arduino IDE:
|
|
|
|
- In `Sketch -> Include Library -> Add .ZIP Library...` and choose the
|
|
|
|
`IDE/ARDUNIO/wolfSSL` folder.
|
|
|
|
- In `Sketch -> Include Library` choose wolfSSL.
|
|
|
|
|
2019-01-08 14:28:30 -08:00
|
|
|
2. Open an example Arduino sketch for wolfSSL:
|
|
|
|
- wolfSSL Client INO sketch: `sketches/wolfssl_client/wolfssl_client.ino`
|
|
|
|
- wolfSSL Server INO sketch: `sketches/wolfssl_server/wolfssl_server.ino`
|