This is an example based on the AWS IoT Example.
The easiest way to get started is by using the Espressif Managed Component Registry at https://components.espressif.com
The latest experimental development version can be found at the staging site: gojimmypi/mywolfmqtt.
Bash
#!/bin/bash
WRK_IDF_PATH=/mnt/c/SysGCC/esp32/esp-idf/v5.2
echo "Run export.sh from ${WRK_IDF_PATH}"
pushd ${WRK_IDF_PATH}
. ./export.sh
popd
# Needed for Staging site ONLY:
export IDF_COMPONENT_REGISTRY_URL=https://components-staging.espressif.com
idf.py create-project-from-example "gojimmypi/mywolfmqtt^1.0.14-test:AWS_IoT_MQTT"
cd AWS_IoT_MQTT
# Set your SSID and wifi Password in example configuration
idf.py menuconfig
idf.py -p /dev/ttyS9 -b 921600 flash monitor -b 115200
It is assumed the ESP-IDF environment has been installed.
main.c with a simple call to an Espressif library (ESP_LOGI
) and a call to a wolfSSL library (esp_ShowExtendedSystemInfo
) .
See components/wolfssl/include directory to edit the wolfSSL user_settings.h
.
Edit main/CMakeLists.txt to add/remove source files.
The components/wolfssl/CMakeLists.txt typically does not need to be changed.
Optional VisualGDB Project for Visual Studio using ESP32 and ESP-IDF v5.1.
Edit the project CMakeLists.txt to optionally point this project's wolfSSL component source code at a different directory:
Plaintext
set(WOLFSSL_ROOT "~/workspace/wolfssl-other-source")
The quickest way to get started is with wolfMQTT Managed Components.
Coming soon. See Staging Site.
Here's an example using the command-line idf.py:
Edit your WRK_IDF_PATH
to point to your ESP-IDF install directory.
Plaintext
WRK_IDF_PATH=/mnt/c/SysGCC/esp32/esp-idf/v5.1
echo "Run export.sh from ${WRK_IDF_PATH}"
. ${WRK_IDF_PATH}/export.sh
# build the example:
idf.py build
# flash the code onto the serial device at /dev/ttyS19
idf.py flash -p /dev/ttyS19 -b 115200
# build, flash, and view UART output with one command:
idf.py flash -p /dev/ttyS19 -b 115200 monitor
Press Ctrl+]
to exit idf.py monitor
. See additional monitor keyboard commands.
For examples, see:
To create a project from this example, run:
idf.py create-project-from-example "wolfssl/wolfmqtt=1.18.0-preview8d:AWS_IoT_MQTT"