#
# 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 "OceanConnect Mqtt configuration"

config OCMQTT_ENABLE
    bool "Enable the ocmqtt abstract layer"
    default y
    

if  OCMQTT_ENABLE
    config OCMQTT_ATCMD
        bool  "Enable the OCMQTT AT COMMAND API"
        default y
        
    config OCMQTT_OTA
        bool  "Enable the OCMQTT  OTA"
        default y    
        select OTA_ENABLE
    
    config OCMQTT_DEMOENABLE
        bool "Enable the OCMQTT STANDARD DEMO"
        default n
        
    
    choice
    prompt "Please select the interface type"
     
    config OC_MQTT_V5
        bool "Enable the V5 interface with DMP"
    config OC_MQTT_V1     
        bool "Enable the V1 interface with DMP"
    
    endchoice

    choice
    prompt "please select one oc mqtt implement"
    
    if OC_MQTT_V1
        config OC_TINYMQTTV1_ENABLE
            bool "Enable OCTinyMqttV1"
            help "This is a software implement, and use the v1 interface with dmp"
            select MQTT_AL_ENABLE
        config EC2XV1_ENABLE
	    bool "Enable EC2XV1"
            help "we use the EC2X as the ocmqtt protocol,support the v1 interface"
            select AT_ENABLE        
    endif
    
    if OC_MQTT_V5     
        config OC_TINYMQTTV5_ENABLE
            bool "Enable OCTinyMqttV5"
            help "This is a software implement, and use the v5 interface with dmp"
            select MQTT_AL_ENABLE
    endif            
       
                     
    config OCMQTT_NULL
        bool "we will create a new oc mqtt ourself"    
           
    endchoice
    
    rsource "./oc_mqtt_profile_v5/Kconfig"
        
    rsource "./oc_mqtt_profile/Kconfig"
                   
endif   
    
endmenu