#服务配置
menu "Services Configuration"

config _BOS_SERVICES_ENABLE
    bool "Services Enable/Disable"
    default y

config _PROTOCOL_SERVICE_ENABLE
    bool "Protocol Service Enable/Disable"
    default n
    depends on _BOS_SERVICES_ENABLE

config _TCPIP_SERVICE_ENABLE
    bool "TCPIP Service Enable/Disable"
    default n
    depends on _BOS_SERVICES_ENABLE 
    select _HTTP_PARSER_ENABLE
    select _MEMP_ENABLE
    select _NETIF_ENABLE

config _NTP_SERVER_1
    string "ntp server 1"
    default "ntp1.aliyun.com"
    depends on _TCPIP_SERVICE_ENABLE

config _NTP_SERVER_2
    string "ntp server 2"
    default "ntp2.aliyun.com"
    depends on _TCPIP_SERVICE_ENABLE    

config _NTP_SERVER_3
    string "ntp server 3"
    default "ntp3.aliyun.com"
    depends on _TCPIP_SERVICE_ENABLE    

config _HTTP_HOST_LEN_MAX
    int "The maximum length of a URL host"
    default 64
    depends on _TCPIP_SERVICE_ENABLE 

config _HTTP_PATH_LEN_MAX
    int "The maximum length of a URL path"
    default 128
    depends on _TCPIP_SERVICE_ENABLE


config _OTA_SERVICE_ENABLE
    bool "OTA Service Enable/Disable"
    default n
    depends on _BOS_SERVICES_ENABLE 
    select _PROTOCOL_SERVICE_ENABLE
    select _IAP_ENABLE

config OTA_TIMEOUT_S
    int "OTA Timeout (s)"
    default 30
    depends on _OTA_SERVICE_ENABLE

config _MQTT_SERVICE_ENABLE
    bool "MQTT Enable/Disable"
    default n
    depends on _BOS_SERVICES_ENABLE
    select _MEMP_ENABLE
    select _NETIF_ENABLE

choice
    prompt "Select Mqtt Broker"
    default BABYOS_MQTT_BROKER
    depends on _MQTT_SERVICE_ENABLE
config BABYOS_MQTT_BROKER
    bool "BabyOS Mqtt Broker"
config RESERVED_BROKER
    bool "Reserved"
endchoice

if BABYOS_MQTT_BROKER

config MQTT_CLIENT_ID
    string "Mqtt Client Id"
    default "babyos"

config MQTT_BROKER_URL
    string "Mqtt Broker Url"
    default "mqtt://babyos.cn:1883"

config MQTT_USER_NAME
    string "Mqtt User Name"
    default "babyos"

config MQTT_USER_PASSWD
    string "Mqtt User Passwd"
    default "babyos"

config MQTT_SUB_TOPIC_DEFAULT
    string "Default MQTT Subscription Topic"
    default "ogugO0zq_Qi7O3HxQn9G4X2rhH"

config MQTT_QOS_DEFAULT
    int "Default MQTT QOS"
    default 0

config MQTT_KEEP_ALIVE
    int "MQTT Keep Alive"
    default 60 

endif


config _TRANSFILE_SERVICE_ENABLE
    bool "Transfile Service Enable/Disable"
    default n
    depends on _BOS_SERVICES_ENABLE 
    select _PROTOCOL_SERVICE_ENABLE

endmenu