text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```c /* * */ #include <zephyr/logging/log.h> #define LOG_LEVEL LOG_LEVEL_DBG LOG_MODULE_REGISTER(net_dumb_http_srv_mt_sample); #include <zephyr/kernel.h> #include <errno.h> #include <zephyr/net/net_ip.h> #include <zephyr/net/socket.h> #include <zephyr/net/tls_credentials.h> #include <zephyr/net/net_mgmt.h> #includ...
/content/code_sandbox/samples/net/sockets/dumb_http_server_mt/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,873
```unknown # Networking Config: CONFIG_NET_NATIVE=n # Enable SimpleLink WiFi Driver and Socket Offload CONFIG_WIFI=y CONFIG_WIFI_SIMPLELINK=y CONFIG_NET_SOCKETS_OFFLOAD=y # Disable unneeded settings from the base prj.conf: CONFIG_NET_CONFIG_SETTINGS=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" CONFIG_NET_CONFIG_PEER_IPV4_ADDR...
/content/code_sandbox/samples/net/sockets/echo_async_select/boards/cc3235sf_launchxl.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
114
```unknown # Networking Config: CONFIG_NET_NATIVE=n # Enable SimpleLink WiFi Driver and Socket Offload CONFIG_WIFI=y CONFIG_WIFI_SIMPLELINK=y CONFIG_NET_SOCKETS_OFFLOAD=y # Disable unneeded settings from the base prj.conf: CONFIG_NET_CONFIG_SETTINGS=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" CONFIG_NET_CONFIG_PEER_IPV4_ADDR...
/content/code_sandbox/samples/net/sockets/echo_async_select/boards/cc3220sf_launchxl.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
114
```shell if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then echo "Do not run this script directly!" echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead." exit 1 fi # First the non-tls version echo "HTTP client test" start_configuration "--ip=192.0.2.2 --ip6=2001:db8::2" || return $? start_docker "/usr...
/content/code_sandbox/samples/net/sockets/http_client/docker-test.sh
shell
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
324
```c /* * */ #include <stdio.h> #include <stdbool.h> #include <errno.h> #include <stdlib.h> #if !defined(__ZEPHYR__) #include <netinet/in.h> #include <sys/socket.h> #include <sys/select.h> #include <arpa/inet.h> #include <unistd.h> #include <fcntl.h> /* Generic read()/write() is available in POSIX config, so use ...
/content/code_sandbox/samples/net/sockets/echo_async_select/src/socket_echo_select.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,651
```unknown CONFIG_MAIN_STACK_SIZE=3072 CONFIG_NET_BUF_RX_COUNT=80 CONFIG_NET_BUF_TX_COUNT=80 # TLS configuration CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y CONFIG_MBEDTLS_ENABLE_HEAP=y CONFIG_MBEDTLS_HEAP_SIZE=60000 CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2048 CONFIG_NET_SOCKETS_SOCKOPT_TLS=y CONFIG_NET_SOCKETS_TLS_MAX_CON...
/content/code_sandbox/samples/net/sockets/http_client/overlay-tls.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
94
```unknown # Private config options for http-client sample app mainmenu "Networking http-client sample application" config NET_SAMPLE_SEND_ITERATIONS int "Send a sample HTTP query this many times" default 0 help Send a sample HTTP query this many times before exiting. A value of zero means that the sample a...
/content/code_sandbox/samples/net/sockets/http_client/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
79
```restructuredtext .. zephyr:code-sample:: sockets-http-client :name: HTTP Client :relevant-api: bsd_sockets http_client tls_credentials secure_sockets_options Implement an HTTP(S) client that issues a variety of HTTP requests. Overview ******** This sample application implements an HTTP(S) client that wil...
/content/code_sandbox/samples/net/sockets/http_client/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
628
```unknown # Networking config CONFIG_NETWORKING=y CONFIG_NET_IPV4=y CONFIG_NET_IPV6=y CONFIG_NET_TCP=y CONFIG_NET_SHELL=y # Sockets CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POLL_MAX=4 CONFIG_POSIX_API=y # Network driver config CONFIG_TEST_RANDOM_GENERATOR=y # Network address config CONFIG_NET_CONFIG_SETTINGS=y CONFI...
/content/code_sandbox/samples/net/sockets/http_client/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
248
```yaml common: tags: - net - http - http_client min_ram: 32 depends_on: netif # native_posix does not work with CONFIG_POSIX_API platform_exclude: - native_posix - native_posix/native/64 sample: description: HTTP client sample name: http_client tests: sample.net.sockets.http_client:...
/content/code_sandbox/samples/net/sockets/http_client/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
96
```objective-c /* * */ #define CA_CERTIFICATE_TAG 1 #define TLS_PEER_HOSTNAME "localhost" /* This is the same cert as what is found in net-tools/https-cert.pem file */ static const unsigned char ca_certificate[] = { #include "https-cert.der.inc" }; ```
/content/code_sandbox/samples/net/sockets/http_client/src/ca_certificate.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```unknown CONFIG_BT=n # Disable TCP and IPv4 (TCP disabled to avoid heavy traffic) CONFIG_NET_TCP=n CONFIG_NET_IPV4=n CONFIG_NET_CONFIG_NEED_IPV6=y CONFIG_NET_CONFIG_NEED_IPV4=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" CONFIG_NET_CONFIG_PEER_IPV4_ADDR="" CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::2" CONFIG_NET_CONFIG_PEER_I...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-802154.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
140
```unknown CONFIG_NET_VLAN=y # We have one non-vlan interface and two VLAN interfaces CONFIG_NET_VLAN_COUNT=2 # There will be three network interfaces. Note that the addresses are # selected so that our address ends to .1 and the peer one to .2 # First ethernet interface will use these settings CONFIG_NET_CONFIG_MY_...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-vlan.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
290
```unknown CONFIG_NET_L2_IEEE802154=y CONFIG_NET_IPV4=n CONFIG_NET_CONFIG_NEED_IPV4=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" CONFIG_NET_CONFIG_PEER_IPV4_ADDR="" ```
/content/code_sandbox/samples/net/sockets/echo_client/overlay-cc2520.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
41
```shell if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then echo "Do not run this script directly!" echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead." exit 1 fi start_configuration "--ip=192.0.2.1 --ip6=2001:db8::1" || return $? start_docker "/net-tools/echo-server -i eth0" || return $? start_zeph...
/content/code_sandbox/samples/net/sockets/echo_client/docker-test.sh
shell
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
128
```unknown CONFIG_SOCKS=y ```
/content/code_sandbox/samples/net/sockets/echo_client/overlay-socks5.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
7
```unknown CONFIG_NO_OPTIMIZATIONS=y CONFIG_DEBUG=y CONFIG_ASSERT=y CONFIG_STACK_SENTINEL=y CONFIG_STACK_CANARIES=y ```
/content/code_sandbox/samples/net/sockets/echo_client/overlay-debug.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
31
```unknown CONFIG_PCIE=y CONFIG_NET_L2_ETHERNET=y CONFIG_NET_QEMU_ETHERNET=y ```
/content/code_sandbox/samples/net/sockets/echo_client/overlay-e1000.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
23
```unknown CONFIG_BT=n # Disable IPv4 CONFIG_NET_IPV4=n CONFIG_NET_CONFIG_NEED_IPV6=y CONFIG_NET_CONFIG_NEED_IPV4=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" CONFIG_NET_CONFIG_PEER_IPV4_ADDR="" CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::2" CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::1" CONFIG_NET_L2_IEEE802154=y CONFIG_NET_L...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-802154-subg.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
152
```unknown CONFIG_LOG=y CONFIG_LOG_MODE_IMMEDIATE=y CONFIG_LOG_BACKEND_SHOW_COLOR=n CONFIG_LOG_BUFFER_SIZE=1024 CONFIG_NET_LOG=y CONFIG_NET_SOCKETS_LOG_LEVEL_DBG=y CONFIG_NET_CONN_LOG_LEVEL_DBG=y CONFIG_NET_CONTEXT_LOG_LEVEL_DBG=y CONFIG_NET_TCP_LOG_LEVEL_DBG=y #CONFIG_NET_IF_LOG_LEVEL_DBG=y #CONFIG_NET_L2_ETHERNE...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-log.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
141
```unknown CONFIG_BT=n # Disable TCP and IPv4 (TCP disabled to avoid heavy traffic) CONFIG_NET_TCP=n CONFIG_NET_IPV4=n # Disabling Ethernet CONFIG_NET_SLIP_TAP=n # Enable UART PIPE 802.15.4 driver CONFIG_IEEE802154_UPIPE=y CONFIG_NET_CONFIG_NEED_IPV6=y CONFIG_NET_CONFIG_NEED_IPV4=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" ...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-qemu_802154.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
143
```c /* * */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(net_http_client_sample, LOG_LEVEL_DBG); #include <zephyr/net/net_ip.h> #include <zephyr/net/socket.h> #include <zephyr/net/tls_credentials.h> #include <zephyr/net/http/client.h> #include "ca_certificate.h" #define HTTP_PORT 8000 #define HTTPS_PORT 4...
/content/code_sandbox/samples/net/sockets/http_client/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,532
```unknown # Include this overlay when the echo-server is running on Linux and # echo-client is running on Qemu. CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::1" CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::2" CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1" CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2" ```
/content/code_sandbox/samples/net/sockets/echo_client/overlay-linux.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
88
```unknown CONFIG_MAIN_STACK_SIZE=4096 CONFIG_NET_BUF_RX_COUNT=100 CONFIG_NET_BUF_TX_COUNT=100 # TLS configuration CONFIG_MBEDTLS=y CONFIG_MBEDTLS_BUILTIN=y CONFIG_MBEDTLS_ENABLE_HEAP=y CONFIG_MBEDTLS_HEAP_SIZE=60000 CONFIG_MBEDTLS_SSL_MAX_CONTENT_LEN=2048 CONFIG_NET_SOCKETS_SOCKOPT_TLS=y CONFIG_NET_SOCKETS_TLS_MAX_C...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-tls.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
125
```unknown # Private config options for echo-client sample app mainmenu "Networking echo-client sample application" config NET_SAMPLE_IFACE2_MY_IPV6_ADDR string "My IPv6 address for second interface" help The value depends on your network setup. config NET_SAMPLE_IFACE2_MY_IPV4_ADDR string "My IPv4 address fo...
/content/code_sandbox/samples/net/sockets/echo_client/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
371
```unknown CONFIG_NET_MGMT_EVENT_STACK_SIZE=65535 CONFIG_PRIVILEGED_STACK_SIZE=65535 CONFIG_NET_TX_STACK_SIZE=65535 CONFIG_NET_RX_STACK_SIZE=65535 CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=65535 CONFIG_MAIN_STACK_SIZE=65535 CONFIG_IDLE_STACK_SIZE=65535 CONFIG_ISR_STACK_SIZE=65535 CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=65535 CON...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-max-stacks.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
104
```unknown # Select Stellaris Ethernet CONFIG_NET_SLIP_TAP=n CONFIG_SLIP=n CONFIG_NET_L2_ETHERNET=y # Network Application Options CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::2" CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::1" CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.2" CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.1" ```
/content/code_sandbox/samples/net/sockets/echo_client/overlay-qemu_cortex_m3_eth.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
98
```restructuredtext .. zephyr:code-sample:: sockets-echo-client :name: Echo client (advanced) :relevant-api: bsd_sockets tls_credentials Implement a client that sends IP packets, waits for data to be sent back, and verifies it. Overview ******** The echo-client sample application for Zephyr implements a UDP...
/content/code_sandbox/samples/net/sockets/echo_client/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,388
```unknown CONFIG_REQUIRES_FULL_LIBC=y # Disable TCP and IPv4 (TCP disabled to avoid heavy traffic) CONFIG_NET_TCP=n CONFIG_NET_IPV4=n CONFIG_NET_IPV6_NBR_CACHE=n CONFIG_NET_IPV6_MLD=n CONFIG_NET_CONFIG_NEED_IPV4=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" CONFIG_NET_CONFIG_PEER_IPV4_ADDR="" CONFIG_SYSTEM_WORKQUEUE_STACK_SI...
/content/code_sandbox/samples/net/sockets/echo_client/overlay-ot.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
322
```unknown # Generic networking options CONFIG_NETWORKING=y CONFIG_NET_UDP=y CONFIG_NET_TCP=y CONFIG_NET_IPV6=y CONFIG_NET_IPV4=y CONFIG_NET_SOCKETS=y CONFIG_NET_SOCKETS_POLL_MAX=5 CONFIG_NET_CONNECTION_MANAGER=y CONFIG_POSIX_API=y # Kernel options CONFIG_MAIN_STACK_SIZE=2048 CONFIG_ENTROPY_GENERATOR=y CONFIG_TEST_RA...
/content/code_sandbox/samples/net/sockets/echo_client/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
377
```yaml common: harness: net tags: - net - socket depends_on: netif min_flash: 140 sample: description: Test network sockets using a client/server sample name: Socket Echo Client tests: sample.net.sockets.echo_client: platform_allow: - qemu_x86 - frdm_k64f - sam_e70_xplained/...
/content/code_sandbox/samples/net/sockets/echo_client/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,008
```c /* * */ #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(net_echo_client_sample, LOG_LEVEL_DBG); #include <zephyr/kernel.h> #include <zephyr/net/ethernet.h> /* User data for the interface callback */ struct ud { struct net_if *first; struct net_if *second; }; static void iface_cb(struct net_if *iface, v...
/content/code_sandbox/samples/net/sockets/echo_client/src/vlan.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
706
```objective-c /* * */ #include <zephyr/kernel.h> /* Value of 0 will cause the IP stack to select next free port */ #define MY_PORT 0 #define PEER_PORT 4242 /* Turn off the progress printing so that shell can be used. * Set to true if you want to see progress output. */ #define PRINT_PROGRESS false #if defined...
/content/code_sandbox/samples/net/sockets/echo_client/src/common.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
513
```c /* echo-client.c - Networking echo client */ /* * */ /* * The echo-client application is acting as a client that is run in Zephyr OS, * and echo-server is run in the host acting as a server. The client will send * either unicast or multicast packets to the server which will reply the packet * back to the o...
/content/code_sandbox/samples/net/sockets/echo_client/src/echo-client.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,648
```objective-c /* * */ #ifndef __CA_CERTIFICATE_H__ #define __CA_CERTIFICATE_H__ #define CA_CERTIFICATE_TAG 1 #define PSK_TAG 2 #define TLS_PEER_HOSTNAME "localhost" /* This is the same cert as what is found in net-tools/echo-apps-cert.pem file */ static const unsigned char ca_certificate[] = { #include "echo-ap...
/content/code_sandbox/samples/net/sockets/echo_client/src/ca_certificate.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
115
```c /* tcp.c - TCP specific code for echo client */ /* * */ #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(net_echo_client_sample, LOG_LEVEL_DBG); #include <zephyr/kernel.h> #include <errno.h> #include <stdio.h> #include <zephyr/net/socket.h> #include <zephyr/net/tls_credentials.h> #include <zephyr/random/ra...
/content/code_sandbox/samples/net/sockets/echo_client/src/tcp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,023
```objective-c /* * */ #ifndef __DUMMY_PSK_H__ #define __DUMMY_PSK_H__ static const unsigned char psk[] = {0x01, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f}; static const char psk_id[] = "PSK_identity"; #endif /* __DUMMY_PSK_H__ */ ```
/content/code_sandbox/samples/net/sockets/echo_client/src/dummy_psk.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
136
```unknown # # # # Reduced configs to fit into SAMR21 SoC CONFIG_CPP=n CONFIG_NET_PKT_RX_COUNT=5 CONFIG_NET_PKT_TX_COUNT=5 CONFIG_NET_BUF_RX_COUNT=5 CONFIG_NET_BUF_TX_COUNT=5 CONFIG_NET_MAX_CONTEXTS=2 CONFIG_NET_MAX_CONN=1 CONFIG_NET_MAX_ROUTES=1 CONFIG_NET_MAX_NEXTHOPS=1 CONFIG_SHELL_STACK_SIZE=768 CONFIG_SHELL_CMD...
/content/code_sandbox/samples/net/sockets/echo_client/boards/samr21_xpro.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
187
```unknown # The addresses are selected so that qemu<->qemu connectivity works ok. # For linux<->qemu connectivity, create a new conf file and swap the # addresses (so that peer address is ending to 2). CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::2" CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::1" CONFIG_NET_CONFIG_MY_IPV4...
/content/code_sandbox/samples/net/sockets/echo_client/boards/qemu_cortext_m3.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
112
```unknown # The addresses are selected so that qemu<->qemu connectivity works ok. # For linux<->qemu connectivity, create a new conf file and swap the # addresses (so that peer address is ending to 2). CONFIG_NET_CONFIG_MY_IPV6_ADDR="2001:db8::2" CONFIG_NET_CONFIG_PEER_IPV6_ADDR="2001:db8::1" CONFIG_NET_CONFIG_MY_IPV4...
/content/code_sandbox/samples/net/sockets/echo_client/boards/qemu_x86.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
112
```unknown /* * */ /** * Overlay to enable for CC1352R1 / CC1352P1-based boards. */ / { chosen { zephyr,ieee802154 = &ieee802154g; }; }; &ieee802154 { status = "disabled"; }; &ieee802154g { status = "okay"; }; ```
/content/code_sandbox/samples/net/sockets/echo_client/boards/cc1352-enable-subg.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
71
```restructuredtext .. zephyr:code-sample:: packet-socket :name: Packet socket :relevant-api: bsd_sockets ethernet Use raw packet sockets over Ethernet. Overview ******** This sample is a simple packet socket application showing usage of packet sockets over Ethernet. The sample prints every packet received,...
/content/code_sandbox/samples/net/sockets/packet/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
205
```unknown # Private config options for packet socket sample app mainmenu "Networking packet socket sample application" config NET_SAMPLE_SEND_WAIT_TIME int "Wait time between sent packets (in ms)" default 5000 help By default the application will send a packet every 5 seconds. If set to 0, then the packets...
/content/code_sandbox/samples/net/sockets/packet/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
190
```c /* udp.c - UDP specific code for echo client */ /* * */ #include <zephyr/logging/log.h> LOG_MODULE_DECLARE(net_echo_client_sample, LOG_LEVEL_DBG); #include <zephyr/kernel.h> #include <errno.h> #include <stdio.h> #include <zephyr/net/socket.h> #include <zephyr/net/tls_credentials.h> #include <zephyr/random/ra...
/content/code_sandbox/samples/net/sockets/echo_client/src/udp.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
2,618
```unknown # Generic networking options CONFIG_NETWORKING=y CONFIG_NET_UDP=n CONFIG_NET_TCP=n CONFIG_NET_IPV6=n CONFIG_NET_IPV4=n CONFIG_NET_MAX_CONTEXTS=10 CONFIG_NET_SOCKETS=y CONFIG_POSIX_API=y CONFIG_ZVFS_OPEN_MAX=6 CONFIG_NET_CONTEXT_RCVTIMEO=y CONFIG_NET_MGMT=y CONFIG_NET_MGMT_EVENT=y # Packet socket configurati...
/content/code_sandbox/samples/net/sockets/packet/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
284
```yaml sample: description: Packet socket sample name: packet-socket tests: sample.net.sockets.packet: harness: net platform_allow: - native_sim - native_sim/native/64 integration_platforms: - native_sim tags: - net - sockets - packet-socket ```
/content/code_sandbox/samples/net/sockets/packet/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
75
```restructuredtext .. zephyr:code-sample:: sockets-socketpair :name: Socketpair :relevant-api: bsd_sockets Implement communication between threads using socket pairs. Overview ******** The sockets/socketpair sample application for Zephyr demonstrates a multi-threaded application communicating over pairs of...
/content/code_sandbox/samples/net/sockets/socketpair/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
686
```unknown # Provide some heap space CONFIG_HEAP_MEM_POOL_SIZE=2048 # socketpair dependencies CONFIG_POSIX_API=y CONFIG_NET_SOCKETPAIR=y # Networking config (network subsystem dependencies) CONFIG_NETWORKING=y CONFIG_NET_SOCKETS=y CONFIG_TEST_RANDOM_GENERATOR=y ```
/content/code_sandbox/samples/net/sockets/socketpair/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
59
```yaml sample: description: Socketpair sample name: socketpair common: tags: - net - socket - posix harness: net arch_exclude: posix integration_platforms: - qemu_x86 tests: sample.net.sockets.socketpair: {} ```
/content/code_sandbox/samples/net/sockets/socketpair/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
66
```unknown # # # socketpair_example: src/main.c $(CC) $^ -o $@ -lpthread ```
/content/code_sandbox/samples/net/sockets/socketpair/Makefile.host
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
26
```c /* * */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(net_pkt_sock_sample, LOG_LEVEL_DBG); #include <zephyr/kernel.h> #include <errno.h> #include <stdio.h> #include <zephyr/misc/lorem_ipsum.h> #include <zephyr/net/socket.h> #include <zephyr/net/ethernet.h> #include <zephyr/net/net_mgmt.h> #define STACK...
/content/code_sandbox/samples/net/sockets/packet/src/packet.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,565
```unknown # Overlay for experimental TCP as qemu_x86 with E1000 CONFIG_PCIE=y CONFIG_NET_L2_ETHERNET=y CONFIG_NET_QEMU_ETHERNET=y ```
/content/code_sandbox/samples/net/sockets/echo_service/overlay-e1000.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
37
```restructuredtext .. zephyr:code-sample:: sockets-service-echo :name: Echo server (service) :relevant-api: bsd_sockets Implements a simple IPv4/IPv6 TCP echo server using BSD sockets and socket service API. Overview ******** The sockets/echo_service sample application for Zephyr implements a TCP echo serv...
/content/code_sandbox/samples/net/sockets/echo_service/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
409
```unknown # General config # The async method used in the sample needs more stack for the workqueue CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1500 CONFIG_POSIX_API=y # Networking config CONFIG_NETWORKING=y CONFIG_NET_IPV4=y CONFIG_NET_IPV6=y CONFIG_NET_TCP=y CONFIG_NET_SOCKETS=y CONFIG_NET_IPV4_MAPPING_TO_IPV6=y CONFIG_ZVFS...
/content/code_sandbox/samples/net/sockets/echo_service/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
264
```c /* * */ #include <errno.h> #include <poll.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <string.h> #include <sys/socket.h> #include <unistd.h> #ifdef __ZEPHYR__ #include <zephyr/kernel.h> #endif #define NUM_SOCKETPAIRS 3 #define NUM_REPITITIONS 3 struct context { int spair[2]; pth...
/content/code_sandbox/samples/net/sockets/socketpair/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,613
```yaml sample: description: echo server using socket service API name: socket_service_echo common: harness: net depends_on: netif filter: CONFIG_FULL_LIBC_SUPPORTED and not CONFIG_NATIVE_LIBC # eventfd does not work properly with native_posix so exclude it here platform_exclude: - native_posix - ...
/content/code_sandbox/samples/net/sockets/echo_service/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
106
```shell if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then echo "Do not run this script directly!" echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead." exit 1 fi IP="--ip=192.0.2.2 --ip6=2001:db8::2" FWD="-p 8080:8080 -p 8081:8081 -p 5683:5683/udp" start_configuration "$IP $FWD" || return $? start_...
/content/code_sandbox/samples/net/lwm2m_client/docker-test.sh
shell
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
200
```unknown # Enable DTLS with Connection Identifier CONFIG_LWM2M_DTLS_SUPPORT=y CONFIG_LWM2M_DTLS_CID=y CONFIG_LWM2M_PEER_PORT=5684 # Select Zephyr mbedtls CONFIG_MBEDTLS=y CONFIG_MBEDTLS_TLS_VERSION_1_2=y CONFIG_MBEDTLS_SSL_DTLS_CONNECTION_ID=y # Special MbedTLS changes CONFIG_MBEDTLS_ENABLE_HEAP=y CONFIG_MBEDTLS_HE...
/content/code_sandbox/samples/net/lwm2m_client/overlay-dtls.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
300
```unknown CONFIG_LWM2M_VERSION_1_1=y # SenML CBOR - default CONFIG_LWM2M_RW_SENML_CBOR_SUPPORT=y CONFIG_ZCBOR=y CONFIG_ZCBOR_CANONICAL=y # SenML JSON #CONFIG_LWM2M_RW_SENML_JSON_SUPPORT=y #CONFIG_BASE64=y #CONFIG_JSON_LIBRARY=y ```
/content/code_sandbox/samples/net/lwm2m_client/overlay-lwm2m-1.1.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
81
```unknown #Enable Portfolio object CONFIG_LWM2M_PORTFOLIO_OBJ_SUPPORT=y #LwM2M v1.1 configure CONFIG_LWM2M_VERSION_1_1=y CONFIG_LWM2M_COMPOSITE_PATH_LIST_SIZE=10 #Enable SenML JSON content format CONFIG_JSON_LIBRARY=y CONFIG_BASE64=y CONFIG_LWM2M_RW_SENML_JSON_SUPPORT=y #Enable SenML CBOR content format CONFIG_LWM2...
/content/code_sandbox/samples/net/lwm2m_client/overlay-lwm2m-1.1-core-interop.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
164
```unknown CONFIG_LWM2M_QUEUE_MODE_ENABLED=y # Listen for incoming CoAP messages for 30 seconds after last TX. # This is a common NAT timeout for cellular networks. CONFIG_LWM2M_QUEUE_MODE_UPTIME=30 # When DTLS Connection Identifier is used, we can keep socket open # and just stop polling while in idle state (QUEUE_R...
/content/code_sandbox/samples/net/lwm2m_client/overlay-queue.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
147
```c /* * */ #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(net_echo_server_svc_sample, LOG_LEVEL_DBG); #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <zephyr/kernel.h> #include <zephyr/posix/unistd.h> #include <zephyr/posix/poll.h> #include <zephyr/posix/arpa/inet.h> #include <zephyr/posi...
/content/code_sandbox/samples/net/sockets/echo_service/src/main.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
1,749
```unknown CONFIG_LWM2M_DTLS_SUPPORT=y CONFIG_LWM2M_PEER_PORT=5684 # I need room to store certificates CONFIG_LWM2M_SECURITY_KEY_SIZE=2048 # Select Zephyr mbedtls CONFIG_MBEDTLS=y CONFIG_MBEDTLS_TLS_VERSION_1_2=y # Special MbedTLS changes CONFIG_MBEDTLS_ENABLE_HEAP=y CONFIG_MBEDTLS_HEAP_SIZE=32768 CONFIG_MBEDTLS_SSL...
/content/code_sandbox/samples/net/lwm2m_client/overlay-dtls-cert.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
323
```unknown # Private config options for LwM2M client sample mainmenu "LwM2M Client sample" config LWM2M_APP_ID string "LwM2M Client identity" default "" help This is used as client endpoint name as well as PSK ID. Leave empty for using CONFIG_BOARD if LWM2M_DTLS_SUPPORT config LWM2M_APP_PSK string "PSK ke...
/content/code_sandbox/samples/net/lwm2m_client/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
393
```unknown CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP=y ```
/content/code_sandbox/samples/net/lwm2m_client/overlay-bootstrap.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
14
```unknown # Main CONFIG_MAIN_STACK_SIZE=2048 CONFIG_REQUIRES_FULL_LIBC=y # Disable TCP and IPv4 (TCP disabled to avoid heavy traffic) CONFIG_NET_TCP=n CONFIG_NET_IPV4=n CONFIG_NET_IPV6_NBR_CACHE=n CONFIG_NET_IPV6_MLD=n CONFIG_NET_CONFIG_NEED_IPV4=n CONFIG_NET_CONFIG_MY_IPV4_ADDR="" CONFIG_NET_CONFIG_PEER_IPV4_ADDR=...
/content/code_sandbox/samples/net/lwm2m_client/overlay-ot.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
357
```unknown CONFIG_NETWORKING=y CONFIG_LOG=y CONFIG_GPIO=y CONFIG_LWM2M_LOG_LEVEL_DBG=y CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_NET_IPV6=y CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3 CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=3 CONFIG_NET_IPV4=y CONFIG_NET_DHCPV4=n CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=3 CONFIG_NET_IF_MCAST_IPV4_ADD...
/content/code_sandbox/samples/net/lwm2m_client/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
336
```yaml sample: description: TBD name: TBD tests: sample.net.lwm2m_client: harness: net depends_on: netif platform_allow: - qemu_x86 - frdm_k64f - pinnacle_100_dvk - mg100 - native_sim integration_platforms: - qemu_x86 tags: - net - lwm2m sampl...
/content/code_sandbox/samples/net/lwm2m_client/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
547
```unknown CONFIG_NET_SOCKETPAIR=y CONFIG_LWM2M_TICKLESS=y ```
/content/code_sandbox/samples/net/lwm2m_client/overlay-tickless.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
16
```restructuredtext .. zephyr:code-sample:: lwm2m-client :name: LwM2M client :relevant-api: lwm2m_api Implement a LwM2M client that connects to a LwM2M server. Overview ******** Lightweight Machine to Machine (LwM2M) is an application layer protocol based on CoAP/UDP, and is designed to expose various resou...
/content/code_sandbox/samples/net/lwm2m_client/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,070
```c /* * */ #define LOG_MODULE_NAME app_fw_update #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include <zephyr/net/lwm2m.h> #include "modules.h" static uint8_t firmware_buf[64]; /* Array with supported PULL firmware update protocols */ static uint8_t supported_protocol[1]; static int f...
/content/code_sandbox/samples/net/lwm2m_client/src/firmware_update.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
559
```objective-c /* * */ #ifndef _MODULES_H #define _MODULES_H int init_led_device(void); void init_timer_object(void); void init_temp_sensor(void); void init_firmware_update(void); #endif ```
/content/code_sandbox/samples/net/lwm2m_client/src/modules.h
objective-c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
43
```c /* * */ #define LOG_MODULE_NAME app_temp #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include "modules.h" #include <zephyr/drivers/hwinfo.h> #include <zephyr/drivers/sensor.h> #include <zephyr/net/lwm2m.h> #include <zephyr/kernel.h> #include <zephyr/random/random.h> #include <stdint....
/content/code_sandbox/samples/net/lwm2m_client/src/temperature.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
371
```c /* * */ #define LOG_MODULE_NAME app_timer #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include "modules.h" #include <zephyr/net/lwm2m.h> #define TIMER_NAME "Test timer" /* An example data validation callback. */ static int timer_on_off_validate_cb(uint16_t obj_inst_id, uint16_t res...
/content/code_sandbox/samples/net/lwm2m_client/src/timer.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
394
```c /* * */ #define LOG_MODULE_NAME app_led #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include "modules.h" #include <zephyr/drivers/gpio.h> #include <zephyr/net/lwm2m.h> #define LIGHT_NAME "Test light" /* If led0 gpios doesn't exist the relevant IPSO object will simply not be create...
/content/code_sandbox/samples/net/lwm2m_client/src/led.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
529
```unknown CONFIG_DNS_RESOLVER=y CONFIG_DNS_SERVER_IP_ADDRESSES=y CONFIG_DNS_SERVER1="192.0.2.2" CONFIG_LWM2M_DNS_SUPPORT=y CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2" ```
/content/code_sandbox/samples/net/lwm2m_client/boards/native_sim.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
60
```unknown CONFIG_DNS_RESOLVER=y CONFIG_DNS_SERVER_IP_ADDRESSES=y CONFIG_DNS_SERVER1="192.0.2.2" CONFIG_LWM2M_DNS_SUPPORT=y CONFIG_NET_CONFIG_MY_IPV4_GW="192.0.2.2" ```
/content/code_sandbox/samples/net/lwm2m_client/boards/native_posix.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
60
```c /* * */ #define LOG_MODULE_NAME net_lwm2m_client_app #define LOG_LEVEL LOG_LEVEL_DBG #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include <zephyr/drivers/hwinfo.h> #include <zephyr/kernel.h> #include <zephyr/drivers/gpio.h> #include <zephyr/drivers/sensor.h> #include <zephyr/net/lwm2...
/content/code_sandbox/samples/net/lwm2m_client/src/lwm2m-client.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
3,790
```unknown CONFIG_NET_L2_ETHERNET=y CONFIG_ETH_DRIVER=y CONFIG_ETH_STELLARIS=y CONFIG_NET_QEMU_ETHERNET=y ```
/content/code_sandbox/samples/net/lwm2m_client/boards/qemu_cortex_m3.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
32
```unknown CONFIG_FPU=y CONFIG_NET_L2_ETHERNET=y CONFIG_NET_QEMU_ETHERNET=y CONFIG_PCIE=y ```
/content/code_sandbox/samples/net/lwm2m_client/boards/qemu_x86.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
28
```unknown # Private config options for TFTP client sample mainmenu "TFTP Client sample" config TFTP_APP_PORT string "TFTP port used" default "69" help TFTP port used. config TFTP_APP_SERVER string "TFTP server address" default "192.0.2.2" help TFTP server address. Write as a full URI including optional...
/content/code_sandbox/samples/net/tftp_client/Kconfig
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
109
```unknown CONFIG_NETWORKING=y CONFIG_LOG=y CONFIG_NET_IPV4=y CONFIG_NET_IPV6=y CONFIG_NET_PKT_RX_COUNT=10 CONFIG_NET_PKT_TX_COUNT=10 CONFIG_NET_BUF_RX_COUNT=10 CONFIG_NET_BUF_TX_COUNT=10 CONFIG_NET_MAX_CONTEXTS=2 CONFIG_NET_LOG=y CONFIG_NET_CONFIG_SETTINGS=y CONFIG_NET_CONFIG_NEED_IPV6=y CONFIG_NET_CONFIG_MY_IPV6_AD...
/content/code_sandbox/samples/net/tftp_client/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
149
```restructuredtext .. zephyr:code-sample:: tftp-client :name: TFTP client :relevant-api: tftp_client Use the TFTP client library to get/put files from/to a TFTP server. Overview ******** Trivial File Transfer Protocol (TFTP) is a simple lockstep File Transfer Protocol based on UDP, and is designed to get a...
/content/code_sandbox/samples/net/tftp_client/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
783
```yaml sample: description: Test TFTP client get and put methods name: TFTP client sample app tests: sample.net.tftp_client: harness: net depends_on: netif platform_allow: - native_sim - qemu_cortex_m3 integration_platforms: - native_sim tags: - net - tftp ```
/content/code_sandbox/samples/net/tftp_client/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
84
```unknown CONFIG_DNS_RESOLVER=y CONFIG_DNS_SERVER_IP_ADDRESSES=y CONFIG_DNS_SERVER1="192.0.2.2" ```
/content/code_sandbox/samples/net/tftp_client/boards/native_sim.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
33
```unknown CONFIG_NET_L2_ETHERNET=y CONFIG_ETH_DRIVER=y CONFIG_ETH_STELLARIS=y CONFIG_NET_QEMU_ETHERNET=y CONFIG_TEST_RANDOM_GENERATOR=y ```
/content/code_sandbox/samples/net/tftp_client/boards/qemu_cortex_m3.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
39
```c /* * */ #define LOG_MODULE_NAME net_tftp_client_app #define LOG_LEVEL LOG_LEVEL_DBG #include <zephyr/logging/log.h> LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include <zephyr/net/tftp.h> #define APP_BANNER "Run TFTP client" #define TFTP_SAMPLE_DATA "Lorem ipsum dolor sit amet, consectetur adipiscing elit" stat...
/content/code_sandbox/samples/net/tftp_client/src/tftp-client.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
562
```restructuredtext .. zephyr:code-sample:: wifi-shell :name: Wi-Fi shell :relevant-api: net_stats Test Wi-Fi functionality using the Wi-Fi shell module. Overview ******** This sample allows testing Wi-Fi drivers for various boards by enabling the Wi-Fi shell module that provides a set of commands: scan, co...
/content/code_sandbox/samples/net/wifi/README.rst
restructuredtext
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
364
```unknown CONFIG_EARLY_CONSOLE=y CONFIG_NETWORKING=y CONFIG_TEST_RANDOM_GENERATOR=y CONFIG_MAIN_STACK_SIZE=5200 CONFIG_SHELL_STACK_SIZE=5200 CONFIG_NET_TX_STACK_SIZE=2048 CONFIG_NET_RX_STACK_SIZE=2048 CONFIG_NET_PKT_RX_COUNT=10 CONFIG_NET_PKT_TX_COUNT=10 CONFIG_NET_BUF_RX_COUNT=20 CONFIG_NET_BUF_TX_COUNT=20 CONFIG_...
/content/code_sandbox/samples/net/wifi/prj.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
225
```unknown /* * */ &wifi { status = "okay"; }; ```
/content/code_sandbox/samples/net/wifi/socs/esp32c3.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13
```unknown CONFIG_WIFI=y CONFIG_NETWORKING=y CONFIG_NET_L2_ETHERNET=y CONFIG_NET_IPV6=n CONFIG_NET_IPV4=y CONFIG_NET_DHCPV4=y CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y CONFIG_NET_LOG=y ```
/content/code_sandbox/samples/net/wifi/socs/esp32_procpu.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```yaml common: harness: net tags: - net - wifi sample: description: Test wifi driver and APIs functionality name: WiFi sample app tests: sample.net.wifi: platform_allow: - cc3220sf_launchxl - disco_l475_iot1 - reel_board integration_platforms: - cc3220sf_launchxl sam...
/content/code_sandbox/samples/net/wifi/sample.yaml
yaml
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
351
```unknown CONFIG_WIFI=y CONFIG_NETWORKING=y CONFIG_NET_L2_ETHERNET=y CONFIG_NET_IPV6=n CONFIG_NET_IPV4=y CONFIG_NET_DHCPV4=y CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y CONFIG_NET_LOG=y ```
/content/code_sandbox/samples/net/wifi/socs/esp32c3.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```unknown CONFIG_WIFI=y CONFIG_NETWORKING=y CONFIG_NET_L2_ETHERNET=y CONFIG_NET_IPV6=n CONFIG_NET_IPV4=y CONFIG_NET_DHCPV4=y CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4=y CONFIG_NET_LOG=y ```
/content/code_sandbox/samples/net/wifi/socs/esp32s3_procpu.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
57
```unknown CONFIG_WIFI=y CONFIG_HEAP_MEM_POOL_SIZE=34816 # decrease packet count and size to save RAM CONFIG_NET_PKT_RX_COUNT=7 CONFIG_NET_PKT_TX_COUNT=7 CONFIG_NET_BUF_RX_COUNT=7 CONFIG_NET_BUF_TX_COUNT=7 CONFIG_ESP32_WIFI_IRAM_OPT=n CONFIG_ESP32_WIFI_RX_IRAM_OPT=n CONFIG_NETWORKING=y CONFIG_NET_L2_ETHERNET=y CONF...
/content/code_sandbox/samples/net/wifi/socs/esp32s2.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
136
```unknown /* * */ &wifi { status = "okay"; }; ```
/content/code_sandbox/samples/net/wifi/socs/esp32_procpu.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13
```unknown /* * */ &wifi { status = "okay"; }; ```
/content/code_sandbox/samples/net/wifi/socs/esp32s3_procpu.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13
```unknown /* * */ &wifi { status = "okay"; }; ```
/content/code_sandbox/samples/net/wifi/socs/esp32s2.overlay
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
13
```c /* * */ #include <zephyr/kernel.h> #include <errno.h> int main(void) { return 0; } ```
/content/code_sandbox/samples/net/wifi/src/wifi_test.c
c
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
27
```unknown # Conf file to test the net_wifi shell module with the cc3235sf WiFi driver # cmake .. -DBOARD=cc3235sf_launchxl CONFIG_WIFI_SIMPLELINK=y # Debugging CONFIG_WIFI_LOG_LEVEL_DBG=y CONFIG_DEBUG=y CONFIG_CC3235SF_DEBUG=y ```
/content/code_sandbox/samples/net/wifi/boards/cc3235sf_launchxl.conf
unknown
2016-05-26T17:54:19
2024-08-16T18:09:06
zephyr
zephyrproject-rtos/zephyr
10,307
64