wolfssl-examples/ESP32
gojimmypi 660590a851 Initial ESP32 DTLS 1.3 client and server examples 2023-09-06 16:02:17 -07:00
..
DTLS13-wifi-station-client Initial ESP32 DTLS 1.3 client and server examples 2023-09-06 16:02:17 -07:00
DTLS13-wifi-station-server Initial ESP32 DTLS 1.3 client and server examples 2023-09-06 16:02:17 -07:00
ESP32-hello-world new ESP32 and tls examples using VisualGDB 2022-03-24 08:26:38 -07:00
TLS13-ENC28J60-client new ESP32 and tls examples using VisualGDB 2022-03-24 08:26:38 -07:00
TLS13-ENC28J60-server new ESP32 and tls examples using VisualGDB 2022-03-24 08:26:38 -07:00
TLS13-wifi_station-client example code cleanup; confirm working w/ ESP-IDF v5.0 2023-01-02 17:12:21 -08:00
TLS13-wifi_station-server example code cleanup; confirm working w/ ESP-IDF v5.0 2023-01-02 17:12:21 -08:00
images new ESP32 and tls examples using VisualGDB 2022-03-24 08:26:38 -07:00
README.md example code cleanup; confirm working w/ ESP-IDF v5.0 2023-01-02 17:12:21 -08:00

README.md

wolfSSL ESP32 Examples

These are wolfSSL TLS 1.3 clients and servers for both wired and wireless Internet.

Note: wolfSSL v5.5.4 or newer is needed to use these examples with ESP-IDF v5.

See the setup scripts to install.

ESP32 TLS 1.3 Server

coming soon:

  • Wireless AP client
  • Arduino client

ESP32 TLS 1.3 Client

coming soon:

  • Wireless AP server
  • Arduino server

Creating VisualGDB Projects

VisualGDB-create-new-project.png

VisualGDB-configure-new-project.png

VisualGDB-new-espressif-project.png

VisualGDB-new-espressif-project-toolchain.png

VisualGDB-new-espressif-project-eth_enc28j60.png

VisualGDB-new-espressif-project-debug.png


ESP-IDF

Although the examples were created using VisualGDB extension for Visual Studio, the examples can of course be compiled using the ESP-IDF idf.py.

Once the EDP-IDF is installed, use the setp_win.bat to copy wolfSSL files to the esp-idf\components directory, typically in C:\Users\%username%\esp\esp-idf\components or C:\Users\%username%\Desktop\esp-idf\components. Be sure to run the ESP-IDY X.Y CMD command prompt that has %IDF_PATH% defined.

cd \workspace\
git clone https://github.com/wolfSSL/wolfssl.git
cd wolfssl\IDE\Espressif\ESP-IDF\
.\setup_win.bat

Build with VisualGDB toolchain from WSL

. /mnt/c/SysGCC/esp32/esp-idf/v5.0/export.sh
idf.py -b 115200 -p /dev/ttyS15 build flash monitor

Tips

If JTAG gets into a mode where it is simply always returning an error (app continually resetting) try using serial port to program a basic, operational "hello world". The Arduino IDE or command-line ESP-IDF can be handy here.

Toolchain Switching in VisualGDB

Due to occasional difficulty in switching between toolchains, separate VisualGDB solution files are included for ESP-IDF v4.4.1 and v5.0.

See the ProjectModeSettings of the respective .vgdbproj file:

      <ESPIDFExtension>
        <IDFCheckout>
          <Version>release/v5.0</Version>
          <Subdirectory>esp-idf/v5.0</Subdirectory>
          <Type>ESPIDF</Type>
        </IDFCheckout>
        <COMPort>COM20</COMPort>
        <SuppressTestPrerequisiteChecks>false</SuppressTestPrerequisiteChecks>
        <UseCCache>false</UseCCache>
        <DeviceID>ESP32</DeviceID>
      </ESPIDFExtension>

See also:


Support

Please contact wolfSSL at support@wolfssl.com with any questions, bug fixes, or suggested feature additions.