diff --git a/IDE/ARDUINO/README.md b/IDE/ARDUINO/README.md index 9742289a4..b16d492e5 100644 --- a/IDE/ARDUINO/README.md +++ b/IDE/ARDUINO/README.md @@ -7,10 +7,16 @@ 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. -To configure wolfSSL with Arduino, enter the following from within the +Step 1: To configure wolfSSL with Arduino, enter the following from within the wolfssl/IDE/ARDUINO directory: - ./wolfssl-arduino.sh + ./wolfssl-arduino.sh + + +Step 2: Edit /wolfssl/wolfcrypt/settings.h uncomment the define for +WOLFSSL_ARDUINO + +also uncomment the define for INTEL_GALILEO if building for that platform #####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). diff --git a/IDE/ARDUINO/sketches/wolfssl_client.ino b/IDE/ARDUINO/sketches/wolfssl_client/wolfssl_client.ino similarity index 100% rename from IDE/ARDUINO/sketches/wolfssl_client.ino rename to IDE/ARDUINO/sketches/wolfssl_client/wolfssl_client.ino diff --git a/IDE/ARDUINO/wolfssl-arduino.sh b/IDE/ARDUINO/wolfssl-arduino.sh index 7d6b27088..d076ea7a1 100755 --- a/IDE/ARDUINO/wolfssl-arduino.sh +++ b/IDE/ARDUINO/wolfssl-arduino.sh @@ -6,7 +6,7 @@ DIR=${PWD##*/} -if [ "$DIR" == "ARDUINO" ]; then +if [ "$DIR" = "ARDUINO" ]; then cp ../../src/*.c ../../ cp ../../wolfcrypt/src/*.c ../../ echo "/* stub header file for Arduino compatibility */" >> ../../wolfssl.h diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 880109e72..63e57b4a0 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -134,7 +134,9 @@ /* #define WOLFSSL_STATIC_RSA */ /* Uncomment next line if building for ARDUINO */ +/* Uncomment both lines if building for ARDUINO on INTEL_GALILEO */ /* #define WOLFSSL_ARDUINO */ +/* #define INTEL_GALILEO */ /* Uncomment next line to enable asynchronous crypto WC_PENDING_E */ /* #define WOLFSSL_ASYNC_CRYPT */