#
# Copyright (C) 2020 Xiaomi Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

config LIB_MQTT5
	bool "Enable mqtt5"
	default n
	---help---
		A library for accessing mqtt5 client services through C libraries calls in a simple manner.

if LIB_MQTT5

config LIB_MQTT5_TLS
	bool "Enable mqtt5 TLS/DTLS"
	depends on OPENSSL_MBEDTLS_WRAPPER
	default y

config LIB_MQTT5_THREAD_STACKSIZE
	int "mqtt thread statcksize"
	default 16384

config LIB_MQTT5_STACKTRACE
	bool "Enable mqtt5 stack trace function"
	default n

if LIB_MQTT5_TLS

config LIB_MQTT5_OPENSSL_VERSION_NUMBER
	int "OpenSSL version number of MQTT5"
	default 9470208

endif # LIB_MQTT5_TLS

config UTILS_MQTT5
	tristate "Enable mqtt5 tool"
	depends on LIB_MQTT5
	---help---
		Enable mqtt utility

if UTILS_MQTT5

config UTILS_MQTT5_PRIORITY
	int "mqtt utility priority"
	default 100

config UTILS_MQTT5_STACKSIZE
	int "mqtt utility statcksize"
	default 16384

endif # UTILS_MQTT5

endif # LIB_MQTT5