mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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>
31 lines
685 B
Text
31 lines
685 B
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_LWS_ECHO
|
|
tristate "libwebsockets WebSocket echo server"
|
|
default n
|
|
depends on NETUTILS_LIBWEBSOCKETS && NETUTILS_LIBWEBSOCKETS_SERVER
|
|
---help---
|
|
Simple WebSocket echo server using libwebsockets without TLS.
|
|
|
|
if EXAMPLES_LWS_ECHO
|
|
|
|
config EXAMPLES_LWS_ECHO_PROGNAME
|
|
string "Program name"
|
|
default "lws_echo"
|
|
|
|
config EXAMPLES_LWS_ECHO_PRIORITY
|
|
int "Task priority"
|
|
default 100
|
|
|
|
config EXAMPLES_LWS_ECHO_STACKSIZE
|
|
int "Stack size"
|
|
default 16384
|
|
|
|
config EXAMPLES_LWS_ECHO_PORT
|
|
int "WebSocket server TCP port"
|
|
default 9000
|
|
|
|
endif
|