1# Copyright (c) 2024 Analog Devices, Inc.
2# SPDX-License-Identifier: Apache-2.0
3
4mainmenu "Secure MQTT Sensor Actuator Sample Application"
5
6config NET_SAMPLE_MQTT_BROKER_HOSTNAME
7	string "Hostname of MQTT broker"
8	default "test.mosquitto.org"
9	help
10	  MQTT broker's hostname or IP address.
11
12config NET_SAMPLE_MQTT_BROKER_PORT
13	string "MQTT Broker Connection Port"
14	default "8883"
15	help
16	  Port through which the application should connect to the MQTT broker.
17	  Secure MQTT uses port 8883.
18
19config NET_SAMPLE_MQTT_PUB_TOPIC
20	string "The MQTT topic the application should publish data to"
21	default "zephyr_sample/sensor"
22
23config NET_SAMPLE_MQTT_SUB_TOPIC_CMD
24	string "The MQTT topic the application will receive commands on"
25	default "zephyr_sample/command"
26
27config NET_SAMPLE_MQTT_PUBLISH_INTERVAL
28	int "Interval between MQTT publishes (in seconds)"
29	default 3
30	help
31	  This config determines the frequency at which MQTT publishes occur.
32
33choice NET_SAMPLE_MQTT_QOS
34	prompt "Quality of Service level used for MQTT publish and subscribe"
35	default NET_SAMPLE_MQTT_QOS_1_AT_LEAST_ONCE
36
37config NET_SAMPLE_MQTT_QOS_0_AT_MOST_ONCE
38	bool "QoS 0 / At most once delivery"
39	help
40	  No acknowledgment needed for published message.
41
42config NET_SAMPLE_MQTT_QOS_1_AT_LEAST_ONCE
43	bool "QoS 1 / At least once delivery"
44	help
45	  If acknowledgment expected for published message, duplicate messages permitted.
46
47config NET_SAMPLE_MQTT_QOS_2_EXACTLY_ONCE
48	bool "QoS 2 / Exactly once delivery"
49	help
50	   Acknowledgment expected and message shall be published only once.
51
52endchoice
53
54config NET_SAMPLE_MQTT_PAYLOAD_SIZE
55	int "Size of MQTT payload in bytes"
56	default 128
57
58source "Kconfig.zephyr"
59