1# Socket MQTT Library for Zephyr 2 3# Copyright (c) 2018 Nordic Semiconductor ASA 4# SPDX-License-Identifier: Apache-2.0 5 6config MQTT_LIB 7 bool "Socket MQTT Library Support" 8 select NET_SOCKETS 9 help 10 Enable the Zephyr MQTT Library 11 12if MQTT_LIB 13 14module=MQTT 15module-dep=NET_LOG 16module-str=Log level for MQTT 17module-help=Enables mqtt debug messages. 18source "subsys/net/Kconfig.template.log_config.net" 19 20config MQTT_KEEPALIVE 21 int "Maximum number of clients Keep alive time for MQTT (in seconds)" 22 default 60 23 help 24 Keep alive time for MQTT (in seconds). Sending of Ping Requests to 25 keep the connection alive are governed by this value. 26 27config MQTT_LIB_TLS 28 bool "TLS support for socket MQTT Library" 29 help 30 Enable TLS support for socket MQTT Library 31 32config MQTT_LIB_WEBSOCKET 33 bool "Websocket support for socket MQTT Library" 34 help 35 Enable Websocket support for socket MQTT Library. 36 37config MQTT_LIB_CUSTOM_TRANSPORT 38 bool "Custom transport support for socket MQTT Library" 39 help 40 Enable custom transport support for socket MQTT Library. 41 User must provide implementation for transport procedure. 42 43config MQTT_CLEAN_SESSION 44 bool "MQTT Clean Session Flag." 45 help 46 When a client connects to a MQTT broker using a persistent session, 47 the message broker saves all subscriptions. When the client 48 disconnects, the message broker stores unacknowledged QoS 1 messages 49 and new QoS 1 messages published to topics to which the client is 50 subscribed. When the client reconnects to the persistent session, 51 all subscriptions are reinstated and all stored messages are sent to 52 the client. Setting this flag to 0 allows the client to create a 53 persistent session. 54 55endif # MQTT_LIB 56