# 03_lwt_presence ESP-IDF example that enables MQTT Last Will (LWT) / presence behavior and keeps the connection alive. ## Build / flash ```bash idf.py set-target esp32 idf.py build flash monitor ``` ## Notes - Configure Wi‑Fi / workspace values via `menuconfig` (see `sdkconfig.defaults` for Kconfig symbol names). - Canonical source also lives in the main repository: `https://github.com/iotmertech/iotmer-sdk-esp-idf/tree/main/examples/03_lwt_presence`
To create a project from this example, run:
idf.py create-project-from-example "iotmertech/iotmer=0.1.5:03_lwt_presence"