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 <Zephyr>/subsys/net/lib/mqtt/Kconfig:20

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:34<Zephyr>/subsys/Kconfig:34<Zephyr>/subsys/net/Kconfig:89<Zephyr>/subsys/net/lib/Kconfig:10

Menu path: (Top) → Sub Systems and OS Services → 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.)