Skip to content

Commit b9658bc

Browse files
committed
Update Espressif Examples
1 parent 35a24e3 commit b9658bc

File tree

30 files changed

+8294
-696
lines changed

30 files changed

+8294
-696
lines changed

ide/Espressif/ESP-IDF/examples/wolfssh_echoserver/CMakeLists.txt

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [wolfSSL Project]/CMakeLists.txt
22
#
3-
# Copyright (C) 2014-2024 wolfSSL Inc.
3+
# Copyright (C) 2014-2025 wolfSSL Inc.
44
#
55
# This file is part of wolfSSH.
66
#
@@ -17,7 +17,7 @@
1717
# You should have received a copy of the GNU General Public License
1818
# along with wolfSSH. If not, see <http://www.gnu.org/licenses/>.
1919
#
20-
# cmake for WOLFSSH Espressif projects
20+
# cmake for WOLFSSH Espressif projects (echoserver)
2121
#
2222
# See https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html
2323

@@ -35,6 +35,13 @@ set(WOLFSSL_USER_SETTINGS ON)
3535
# Assume we have a ESP_ENABLE_WOLFSSH section in user_settings.h
3636
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DESP_ENABLE_WOLFSSH")
3737

38+
# Managed wolfSSL Components prior to 5.7.4 need a manual setting for WOLFSSL_WOLFSSH
39+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_WOLFSSH")
40+
41+
# Optional:
42+
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSH_TERM")
43+
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DDEBUG_WOLFSSH")
44+
3845
# The wolfSSL CMake file should be able to find the source code.
3946
# Otherwise, assign an environment variable or set it here:
4047
#
@@ -54,36 +61,36 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DESP_ENABLE_WOLFSSH")
5461
if(WIN32)
5562
# Windows-specific configuration here
5663
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_CMAKE_SYSTEM_NAME_WINDOWS")
57-
message("Detected Windows")
64+
message(STATUS "Detected Windows")
5865
endif()
5966
if(CMAKE_HOST_UNIX)
60-
message("Detected UNIX")
67+
message(STATUS "Detected UNIX")
6168
endif()
6269
if(APPLE)
63-
message("Detected APPLE")
70+
message(STATUS "Detected APPLE")
6471
endif()
6572
if(CMAKE_HOST_UNIX AND (NOT APPLE) AND EXISTS "/proc/sys/fs/binfmt_misc/WSLInterop")
6673
# Windows-specific configuration here
6774
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_CMAKE_SYSTEM_NAME_WSL")
68-
message("Detected WSL")
75+
message(STATUS "Detected WSL")
6976
endif()
7077
if(CMAKE_HOST_UNIX AND (NOT APPLE) AND (NOT WIN32))
7178
# Windows-specific configuration here
7279
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_CMAKE_SYSTEM_NAME_LINUX")
73-
message("Detected Linux")
80+
message(STATUS "Detected Linux")
7481
endif()
7582
if(APPLE)
7683
# Windows-specific configuration here
7784
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DWOLFSSL_CMAKE_SYSTEM_NAME_APPLE")
78-
message("Detected Apple")
85+
message(STATUS "Detected Apple")
7986
endif()
8087
# End optional WOLFSSL_CMAKE_SYSTEM_NAME
8188

8289
# This example uses an extra component for common functions such as Wi-Fi and Ethernet connection.
8390
set (PROTOCOL_EXAMPLES_DIR $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
8491

8592
if (EXISTS "${PROTOCOL_EXAMPLES_DIR}")
86-
message("Found PROTOCOL_EXAMPLES_DIR=${PROTOCOL_EXAMPLES_DIR}")
93+
message(STATUS "Found PROTOCOL_EXAMPLES_DIR=${PROTOCOL_EXAMPLES_DIR}")
8794
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
8895
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFOUND_PROTOCOL_EXAMPLES_DIR")
8996
else()
@@ -116,7 +123,7 @@ endif()
116123
set (PROTOCOL_EXAMPLES_DIR $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
117124

118125
if (EXISTS "${PROTOCOL_EXAMPLES_DIR}")
119-
message("Found PROTOCOL_EXAMPLES_DIR=${PROTOCOL_EXAMPLES_DIR}")
126+
message(STATUS "Found PROTOCOL_EXAMPLES_DIR=${PROTOCOL_EXAMPLES_DIR}")
120127
set(EXTRA_COMPONENT_DIRS $ENV{IDF_PATH}/examples/common_components/protocol_examples_common)
121128
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFOUND_PROTOCOL_EXAMPLES_DIR")
122129
else()

ide/Espressif/ESP-IDF/examples/wolfssh_echoserver/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ To connect:
1111
ssh -p 22222 jack@192.168.1.32
1212
```
1313

14+
The default password for `jack` is 'fetchapail`.
15+
1416
### Prerequisites
1517

1618
It is assumed the [ESP-IDF environment](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/) has been installed.
1719

1820
### Files Included
1921

20-
- [main.c](./main/main.c) with a simple call to an Espressif library (`ESP_LOGI`) and a call to a wolfSSL library (`esp_ShowExtendedSystemInfo`) .
22+
- [main.c](./main/main.c) with a simple call to an Espressif library (`ESP_LOGI`) and a call to a wolfSSL library (`esp_ShowExtendedSystemInfo`) .
2123

2224
- See [components/wolfssl/include](./components/wolfssl/include/user_settings.h) directory to edit the wolfSSL `user_settings.h`.
2325

0 commit comments

Comments
 (0)