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 ifs and menus.)

Default

  • 60

Kconfig definition

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

Included via Kconfig:8Kconfig.zephyr:41subsys/Kconfig:22subsys/net/Kconfig:83subsys/net/lib/Kconfig:10

Menu path: (Top) → Networking → Link layer and IP networking support → Network Protocols → Socket MQTT Library Support

config MQTT_KEEPALIVE
    int "Maximum number of clients Keep alive time for MQTT (in seconds)"
    default 60
    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.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)