1# MQTT-SN Library for Zephyr
2
3# Copyright (c) 2022 René Beckmann
4# SPDX-License-Identifier: Apache-2.0
5
6config MQTT_SN_LIB
7	bool "MQTT-SN Library Support [EXPERIMENTAL]"
8	select EXPERIMENTAL
9	help
10	  Enable the Zephyr MQTT Library
11
12if MQTT_SN_LIB
13
14config MQTT_SN_LIB_MAX_PAYLOAD_SIZE
15	int "Maximum payload size of an MQTT-SN message"
16	default 255
17
18config MQTT_SN_LIB_MAX_MSGS
19	int "Number of preallocated messages"
20	default 10
21
22config MQTT_SN_LIB_MAX_TOPICS
23	int "Number of topics that can be managed"
24	default 20
25
26config MQTT_SN_LIB_MAX_TOPIC_SIZE
27	int "Maximum topic length"
28	default 64
29
30config MQTT_SN_LIB_MAX_PUBLISH
31	int "Number of publishes that can be in-flight at the same time"
32	default 5
33
34config MQTT_SN_KEEPALIVE
35	int "Maximum number of clients Keep alive time for MQTT-SN (in seconds)"
36	default 60
37	help
38	  Keep alive time for MQTT-SN (in seconds). Sending of Ping Requests to
39	  keep the connection alive are governed by this value.
40
41config MQTT_SN_TRANSPORT_UDP
42	bool "UDP transport for MQTT-SN"
43	select NET_SOCKETS
44
45config MQTT_SN_LIB_N_RETRY
46	int "Number of times to retry messages"
47	range 1 20
48	default 5
49
50config MQTT_SN_LIB_T_RETRY
51	int "Time (seconds) to wait for responses"
52	default 10
53
54module=MQTT_SN
55module-dep=NET_LOG
56module-str=Log level for MQTT-SN
57module-help=Enables mqtt-sn debug messages.
58source "subsys/net/Kconfig.template.log_config.net"
59
60endif # MQTT_SN_LIB
61