Tutorials header

Mongoose Networking Library

tutorials & examples

Step-by step guides starting from basic topics like trivial HTTP server or MQTT client, to an advance topics like embedded filesystems and TLS support

Video Tutorials

Introduction - setting up tools on Windows and building a basic example

A detailed HTTP server example walk-through

Implementing Web UI device dashboard on STM32F7 board using Keil RTX

Implementing Web UI device dashboard on STM32F7 board using Cube IDE

How does TCP/CP stack work on embedded device - an animated tutorial

Basic Tutorials

HTTP

Tools setup video
HTTP servercode | tutorial | video
HTTP client code | tutorial
HTTP proxy client code | tutorial
HTTP reverse proxy code | tutorial
File uploads code | tutorial
Huge responses code | tutorial
Video stream code | tutorial

WebSocket

WS server code | tutorial
WS client code | tutorial
JSON-RPC over WS code | tutorial

MQTT

MQTT client code | tutorial
MQTT server code | tutorial
MQTT over WS client code | tutorial
AWS IoT code | tutorial

Misc

Error handling tutorial
Multithreading code | tutorial
SOCKS5 server code | tutorial
SSL/TLS code | tutorial
Timers code | tutorial
TCP client and server code | tutorial
UART bridge code | tutorial
SMTP client code | tutorial

Web UI

REST basicscode | tutorial
Pure JavaScript UIcode | tutorial
Preact UIcode | tutorial
User authenticationcode | tutorial
Data pushcode | tutorial
Embedded filesystem code | tutorial
Device dashboard code | tutorial

UDP

Captive DNS portal code | tutorial
SNTP time sync code | tutorial
SSDP search code | tutorial

Embedded Tutorials

esp32 board
ESP32 DevkitC
ram: 220k flash: 4m
freq: 240MHz net: WiFi
FrameworkOSIP stackAppCodeTutorialVideo
ESP-IDFFreeRTOSLwIPdevice dashboardcode tutorial
ESP-IDFFreeRTOSLwIPUART bridgecode tutorial
nucleo f746zg board
STM32 Nucleo-F746ZG
ram: 320k flash: 1m
freq: 216MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
CubeFreeRTOSLwIPcode tutorial
make + GCCFreeRTOSLwIPcode
make + GCCFreeRTOSFreeRTOS-TCPcode
KeilRTX5MDK tutorial video
ZephyrZephyrZephyrcode tutorial
make + GCCbaremetalMIPcode tutorial
CubebaremetalMIP tutorial video
CubeFreeRTOSLwIP tutorial
nucleo f429zi board
STM32 Nucleo-F429ZI
ram: 256k flash: 2m
freq: 180MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
CubeFreeRTOSLwIPcode tutorial
ZephyrZephyrZephyrcode tutorial
nucleo Nucleo-H743ZI board
STM32 Nucleo-H743ZI
ram: 1m flash: 2m
freq: 480MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
CubeFreeRTOSLwIPcode tutorial
imxrt 1020 board
NXP MIMXRT1020-EVK
ram: 256k flash: 64m
freq: 500MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
MCUXpressoFreeRTOSLwIPcode tutorial
MCUXpressoAzureRTOSAzurecode tutorial
frdm k64f board
NXP FRDM-K64F
ram: 256k flash: 1m
freq: 120MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
MCUXpressoFreeRTOSLwIPcode
frdm k66f board
NXP FRDM-K66F
ram: 256k flash: 2m
freq: 180MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
MCUXpressoFreeRTOSLwIPcode tutorial
lpc 54018 board
NXP LPC54S018M-EVK
ram: 128m flash: 128m
freq: 180MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
MCUXpressoFreeRTOSLwIPcode tutorial
tm4c129 board
TI EK-TM4C1294XL
TI EK-TM4C129EXL
ram: 256k flash: 1m
freq: 120MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
make + GCCbaremetalMIPcode tutorial
CCSTI-RTOSTI-RTOScode tutorial
xmc4700 board
Infineon XMC-4700
ram: 352k flash: 2m+4m
freq: 144MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
KeilRTXLwIPcode
esp8266 board
ESP8266 DevkitC
ram: 50k flash: 2m
freq: 80MHz net: WiFi
FrameworkOSIP stackCodeTutorialVideo
RTOS SDKSDK (FreeRTOS)SDK (LwIP)code tutorial
XIAO M0 + W5500
XIAO M0 + W5500 module
ram: 32k flash: 256k
freq: 48MHz net: Ethernet
FrameworkOSIP stackCodeTutorialVideo
Arduino-MIPcode
pico w board
Raspberry Pi Pico W
ram: 264k flash: 2m
freq: 133MHz net: WiFi
FrameworkOSIP stackCodeTutorialVideo
RPI PICO C SDKFreeRTOSLwIPcode tutorial

All source code examples