zephyr/samples/net/sockets/http_server/Kconfig
Matt Rodgers 3e7d9b55a4 samples: net: http_server: sent net stats to client via websocket
Added a websocket connection sending network statistics to a client, to
demonstrate how this can be used to push data to the client as an
alternative to GET requests triggered by a Javascript timer.

Signed-off-by: Matt Rodgers <mrodgers@witekio.com>
2024-08-12 19:25:05 -04:00

62 lines
1.7 KiB
Plaintext

# Config options for http2 server sample application
# Copyright (c) 2023, Emna Rekik
# SPDX-License-Identifier: Apache-2.0
mainmenu "HTTP2 server sample application"
config NET_SAMPLE_HTTP_SERVICE
bool "Enable http service"
default y
config NET_SAMPLE_HTTP_SERVER_SERVICE_PORT
int "Port number for http service"
default 80
depends on NET_SAMPLE_HTTP_SERVICE
config NET_SAMPLE_HTTPS_SERVICE
bool "Enable https service"
depends on NET_SOCKETS_SOCKOPT_TLS || TLS_CREDENTIALS
config NET_SAMPLE_HTTPS_SERVER_SERVICE_PORT
int "Port number for https service"
default 443
depends on NET_SAMPLE_HTTPS_SERVICE
config NET_SAMPLE_PSK_HEADER_FILE
string "Header file containing PSK"
default "dummy_psk.h"
depends on MBEDTLS_KEY_EXCHANGE_PSK_ENABLED
help
Name of a header file containing a
pre-shared key.
config NET_SAMPLE_CERTS_WITH_SC
bool "Signed certificates"
depends on NET_SOCKETS_SOCKOPT_TLS
help
Enable this flag, if you are interested to run this
application with signed certificates and keys.
config NET_SAMPLE_WEBSOCKET_SERVICE
bool "Enable websocket service"
default y if HTTP_SERVER_WEBSOCKET
config NET_SAMPLE_NUM_WEBSOCKET_HANDLERS
int "How many websocket connections to serve at the same time"
depends on NET_SAMPLE_WEBSOCKET_SERVICE
default 1
help
Each websocket connection is served by a thread which needs
memory. Only increase the value here if really needed.
config NET_SAMPLE_WEBSOCKET_STATS_INTERVAL
int "Interval in milliseconds to send network stats over websocket"
depends on NET_SAMPLE_WEBSOCKET_SERVICE
default 200
help
This interval controls how often the net stats data shown on the web page
will be updated.
source "Kconfig.zephyr"