#
# Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved.
#
# LiteOS NOVA is licensed under the Mulan PSL v1.
# You can use this software according to the terms and conditions of the Mulan PSL v1.
# You may obtain a copy of Mulan PSL v1 at:
#
#   http://license.coscl.org.cn/MulanPSL
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR
# FIT FOR A PARTICULAR PURPOSE.
# See the Mulan PSL v1 for more details.
#

menu "Mqtt  configuration"

config MQTT_AL_ENABLE
    bool "Enable the mqtt abstract layer"
    default y

if MQTT_AL_ENABLE
choice
 
    prompt "please select one mqtt implement; if you have your self, please select mqtt_new"
    
    config PAHO_MQTT
        bool "we use paho mqtt as the mqtt protocol"
        select MBEDTLS_CERT
    
    config LITE_MQTT
        bool "we use the lite mqtt as the mqtt protocol"
        select MBEDTLS_CERT       
             
    config NEW_MQTT
        bool "we will create a new mqtt ourself"    
           
    endchoice
    
    if PAHO_MQTT
        rsource "./paho_mqtt/kconfig_paho"
    endif
    
               
endif   
    
endmenu