{bp-3540} netutils/libwebsockets: Remove hard-dependency on mbedTLS and enable websoket server#3549
Merged
Merged
Conversation
libwebsockets can be built without TLS support. To allow this, it was necessary to create a specific Kconfig option that enables TLS support if OPENSSL_MBEDTLS_WRAPPER is enabled. Otherwise, TLS is not supported (but libwebsockets can still be used with plain ws:// connections). Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
This commit enables building libwebsockets server based on a new Kconfig entry. Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
Prior to this change, if an empty folder existed instead of the actual libwebsockets source, the build would fail. This commit checks for an actual file instead, avoid such kind of errors. Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
This commit adds a simple websocket server example that echoes data back to the client using libwebsockets. Signed-off-by: Tiago Medicci <tiago.medicci@espressif.com>
linguini1
approved these changes
Jun 17, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
examples/lws_echo: Add a simple websocket server example
Adds a simple websocket server example that echoes data back to the client using libwebsockets.
netutils/libwebsockets: Fix error regarding building with CMake
Prior to this change, if an empty folder existed instead of the actual libwebsockets source, the build would fail. That was changed to
check for an actual file instead, avoid such kind of errors.
netutils/libwebsockets: Enable libwebsockets server
Enables building libwebsockets server based on a new Kconfig entry.
netutils/libwebsockets: Remove hard dependency on mbedTLS
libwebsockets can be built without TLS support. To allow this, it was necessary to create a specific Kconfig option that enables TLS support if OPENSSL_MBEDTLS_WRAPPER is enabled. Otherwise, TLS is not supported (but libwebsockets can still be used with plain ws:// connections).
Impact
RELEASE
Testing
CI