Networking
These samples demonstrate how to use the networking subsystem.
- 802.15.4 "serial-radio"Implement a slip-radio device for Contiki-based border routers.
- Cellular modemUse a cellular modem to communicate with a UDP server.
- DHCPv4 clientStart a DHCPv4 client to obtain an IPv4 address from a DHCPv4 server.
- DNS resolveResolve an IP address for a given hostname.
- DSA (Distributed Switch Architecture)Test and debug Distributed Switch Architecture
- gPTPEnable gPTP support and monitor functionality using net-shell.
- IPv4 autoconf clientPerform IPv4 autoconfiguration and self-assign a random IPv4 address
- Link Layer Discovery Protocol (LLDP)Enable LLDP support and setup VLANs.
- LwM2M clientImplement a LwM2M client that connects to a LwM2M server.
- mDNS responderListen and respond to mDNS queries.
- MQTT publisherSend MQTT PUBLISH messages to an MQTT server.
- MQTT-SN publisherSend MQTT-SN PUBLISH messages to an MQTT-SN gateway.
- Network packet captureCapture network packets and send them to a remote host via IPIP tunnel.
- Network statisticsQuery and display network statistics from a user application.
- OpenThread co-processorBuild a Thread border-router using OpenThread's co-processor designs.
- Prometheus SampleImplement a Prometheus Metric Server demonstrating various metric types.
- Promiscuous modeEnable promiscuous mode on all interfaces and print information about incoming packets.
- PTPEnable PTP support and monitor messages and events via logging.
- Remote syslogEnable a remote syslog service that sends syslog messages to a remote server
- Secure MQTT Sensor/ActuatorImplement an MQTT-based IoT sensor/actuator device
- Telnet consoleAccess Zephyr shell over telnet.
- TFTP clientUse the TFTP client library to get/put files from/to a TFTP server.
- Virtual LANSetup two virtual LAN networks and use net-shell to view the networks' settings.
- Virtual network interfaceCreate a sample virtual network interface.
- zperf: Network Traffic GeneratorUse the zperf shell utility to evaluate network bandwidth.
IoT Cloud
- AWS IoT Core MQTTConnect to AWS IoT Core and publish messages using MQTT.
- Microsoft Azure IoT Hub MQTTConnect to Azure IoT Hub and publish messages using MQTT.
- TagoIO HTTP PostSend random temperature values to TagoIO IoT Cloud Platform using HTTP.
Sockets API
- Asynchronous echo server using poll()Implement an asynchronous IPv4/IPv6 TCP echo server using BSD sockets and poll()
- Asynchronous echo server using select()Implement an asynchronous IPv4/IPv6 TCP echo server using BSD sockets and select()
- CoAP clientUse the CoAP library to implement a client that fetches a resource.
- CoAP downloadUse the CoAP client API to download data via a GET request
- CoAP serviceUse the CoAP server subsystem to register CoAP resources.
- Dumb HTTP serverImplement a simple, portable, HTTP server using BSD sockets.
- Dumb HTTP server (multi-threaded)Implement a simple HTTP server supporting simultaneous connections using BSD sockets.
- Echo client (advanced)Implement a client that sends IP packets, waits for data to be sent back, and verifies it.
- Echo server (advanced)Implement a UDP/TCP server that sends received packets back to the sender.
- Echo server (service)Implements a simple IPv4/IPv6 TCP echo server using BSD sockets and socket service API.
- Echo server (simple)Implements a simple IPv4/IPv6 TCP echo server using BSD sockets.
- HTTP ClientImplement an HTTP(S) client that issues a variety of HTTP requests.
- HTTP GET using plain socketsImplement an HTTP(S) client using plain BSD sockets.
- HTTP ServerImplement an HTTP(s) Server demonstrating various resource types.
- Large HTTP downloadDownload a large file from a web server using BSD sockets.
- Network management socketListen to network management events using a network management socket.
- Packet socketUse raw packet sockets over Ethernet.
- SNTP clientUse SNTP to get the current time from the host.
- SocketCANSend and receive raw CAN frames using BSD sockets API.
- SocketpairImplement communication between threads using socket pairs.
- TCP sample for TTCN-3 based sanity checkUse TTCN-3 to validate the functionality of the TCP stack.
- UDP sender using SO_TXTIMEControl the transmission time of a packet using SO_TXTIME socket option.
- WebSocket ClientImplement a Websocket client that connects to a Websocket server.
Wi-Fi
- Wi-Fi AP-STA modeConfigure a Wi-Fi board to operate as both an Access Point (AP) and a Station (STA).
- Wi-Fi shellTest Wi-Fi functionality using the Wi-Fi shell module.