-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from dgarske/fixes_pre_release
Fix for Arduino and other fixes from recent PR's.
- Loading branch information
Showing
18 changed files
with
183 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
### wolfMQTT with Arduino | ||
|
||
##### Reformatting wolfMQTT as a compatible Arduino Library | ||
wolfmqtt-arduino.sh is a shell script that will re-organize the wolfMQTT | ||
library to be compatible with Arduino projects. The Arduino IDE requires a | ||
wolfmqtt-arduino.sh is a shell script that will re-organize the wolfMQTT | ||
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 source files to the root | ||
wolfMQTT directory and creates a stub header file called wolfMQTT.h. | ||
in the name of the library. This script moves all source files to the | ||
`IDE/ARDUINO/wolfMQTT` directory and creates a stub header file called | ||
`wolfMQTT.h`. | ||
|
||
To configure wolfMQTT with Arduino, enter the following from within the | ||
To configure wolfMQTT with Arduino, enter the following from within the | ||
IDE/ARDUINO directory: | ||
|
||
./wolfmqtt-arduino.sh | ||
#####Including wolfMQTT in Arduino Libraries (for Arduino version 1.6.6) | ||
|
||
##### Including wolfMQTT in Arduino Libraries (for Arduino version 1.8.2) | ||
|
||
1. In the Arduino IDE: | ||
- In `Sketch -> Import Library -> Add Library` and choose the wolfMQTT/IDE/ARDUNIO/wolfmqtt folder. | ||
- In `Sketch -> Import Library` choose wolfMQTT. | ||
- In `Sketch -> Include Library -> Add .ZIP Library...` and choose the | ||
`IDE/ARDUNIO/wolfMQTT` folder. | ||
- In `Sketch -> Include Library` choose wolfMQTT. | ||
|
||
Note: If using wolfSSL TLS then you'll need to do this for wolfSSL as well. | ||
See `<wolfssl-root>/IDE/ARDUINO/README.md` for instructions. | ||
|
||
|
||
An example wolfMQTT client INO sketch exists here: | ||
`wolfmqtt_client/wolfmqtt_client.ino` to demonstrate using the wolfMQTT library. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.