menu "SESE Controller"

    config SESE_NTP_SERVER
        string "NTP server"
        default "pool.ntp.org"
        help
            Hostname of the SNTP server used to set the system clock after the
            station receives an IP address.

    config SESE_TIMEZONE
        string "POSIX timezone"
        default "KST-9"
        help
            POSIX TZ string used when formatting local timestamps. KST-9 means
            Korea Standard Time (UTC+09:00). The system epoch remains UTC.

    config SESE_NTP_INITIAL_WAIT_SECONDS
        int "Initial NTP synchronization wait (seconds)"
        default 30
        range 5 120
        help
            Maximum boot-time wait for the first NTP response. A timeout does
            not stop the SNTP client's periodic background retries.

    config SESE_MQTT_ENABLE
        bool "Enable MQTT client"
        default y
        help
            Connect to the configured broker after Wi-Fi and initial NTP setup.
            The client publishes retained online/offline state, periodic
            heartbeats, and implements a bounded ping/pong test command.

    config SESE_MQTT_BROKER_URI
        string "MQTT broker URI"
        default ""
        depends on SESE_MQTT_ENABLE
        help
            Broker URI such as mqtt://host:1883 or mqtts://host:8883. Leave
            empty to keep the client disabled. Do not embed usernames,
            passwords, tokens, or other credentials in this build setting.

    config SESE_MQTT_HEARTBEAT_SECONDS
        int "MQTT heartbeat interval (seconds)"
        default 60
        range 5 86400
        depends on SESE_MQTT_ENABLE

    config SESE_OTA_ENABLE
        bool "Enable automatic HTTPS OTA"
        default y
        help
            Check a configured HTTPS endpoint for a newer firmware image after
            Wi-Fi connects and then periodically while the device is running.

    config SESE_OTA_URL
        string "HTTPS OTA firmware URL"
        default ""
        depends on SESE_OTA_ENABLE
        help
            Direct HTTPS URL to an ESP-IDF application .bin image. Leave empty
            to disable network checks. Do not place credentials or secret query
            parameters in this build-time URL.

    config SESE_OTA_INITIAL_DELAY_SECONDS
        int "Delay before first OTA check (seconds)"
        default 30
        range 5 3600
        depends on SESE_OTA_ENABLE

    config SESE_OTA_CHECK_INTERVAL_MINUTES
        int "Successful/no-update check interval (minutes)"
        default 360
        range 5 10080
        depends on SESE_OTA_ENABLE

    config SESE_OTA_RETRY_INTERVAL_MINUTES
        int "Failed-check retry interval (minutes)"
        default 15
        range 1 1440
        depends on SESE_OTA_ENABLE

endmenu
