The latest development version of this page may be more current than this released 1.14.1 version.
CONFIG_MQTT_KEEPALIVE

Maximum number of clients Keep alive time for MQTT (in seconds)

Type: int

Help

Keep alive time for MQTT (in seconds). Sending of Ping Requests to keep the connection alive are governed by this value.

Direct dependencies

MQTT_LIB && NETWORKING

(Includes any dependencies from if’s and menus.)

Defaults

Kconfig definition

At subsys/net/lib/mqtt/Kconfig:23

Included via Kconfig:10Kconfig.zephyr:39subsys/Kconfig:24subsys/net/Kconfig:84subsys/net/lib/Kconfig:13

Menu path: (top menu) → Networking → Network Protocols

config MQTT_KEEPALIVE
    int
    prompt "Maximum number of clients Keep alive time for MQTT (in seconds)" if MQTT_LIB && NETWORKING
    default 60 if MQTT_LIB && NETWORKING
    depends on MQTT_LIB && NETWORKING
    help
      Keep alive time for MQTT (in seconds). Sending of Ping Requests to
      keep the connection alive are governed by this value.

(Definitions include propagated dependencies, including from if’s and menus.)