mirror of
https://github.com/espressif/esp-mqtt.git
synced 2026-06-05 21:04:46 +00:00
76 lines
2.1 KiB
C
76 lines
2.1 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _MQTT_SUPPORTED_FEATURES_H_
|
|
#define _MQTT_SUPPORTED_FEATURES_H_
|
|
|
|
#if __has_include("esp_idf_version.h")
|
|
#include "esp_idf_version.h"
|
|
#endif
|
|
|
|
/**
|
|
* @brief This header defines supported features of IDF which mqtt module
|
|
* could use depending on specific version of ESP-IDF.
|
|
* In case "esp_idf_version.h" were not found, all additional
|
|
* features would be disabled
|
|
*/
|
|
|
|
#ifdef ESP_IDF_VERSION
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(3, 3, 0)
|
|
// Features supported from 3.3
|
|
#define MQTT_SUPPORTED_FEATURE_EVENT_LOOP
|
|
#define MQTT_SUPPORTED_FEATURE_SKIP_CRT_CMN_NAME_CHECK
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0)
|
|
// Features supported in 4.0
|
|
#define MQTT_SUPPORTED_FEATURE_WS_SUBPROTOCOL
|
|
#define MQTT_SUPPORTED_FEATURE_TRANSPORT_ERR_REPORTING
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 1, 0)
|
|
// Features supported in 4.1
|
|
#define MQTT_SUPPORTED_FEATURE_PSK_AUTHENTICATION
|
|
#define MQTT_SUPPORTED_FEATURE_DER_CERTIFICATES
|
|
#define MQTT_SUPPORTED_FEATURE_ALPN
|
|
#define MQTT_SUPPORTED_FEATURE_CLIENT_KEY_PASSWORD
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0)
|
|
// Features supported in 4.2
|
|
#define MQTT_SUPPORTED_FEATURE_SECURE_ELEMENT
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 3, 0)
|
|
// Features supported in 4.3
|
|
#define MQTT_SUPPORTED_FEATURE_DIGITAL_SIGNATURE
|
|
#define MQTT_SUPPORTED_FEATURE_TRANSPORT_SOCK_ERRNO_REPORTING
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 0)
|
|
// Features supported in 4.4
|
|
#define MQTT_SUPPORTED_FEATURE_CERTIFICATE_BUNDLE
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 1, 0)
|
|
// Features supported in 5.1.0
|
|
#define MQTT_SUPPORTED_FEATURE_CRT_CMN_NAME
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 2, 0)
|
|
// Features supported in 5.2.0
|
|
#define MQTT_SUPPORTED_FEATURE_ECDSA_PERIPHERAL
|
|
#endif
|
|
|
|
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
|
|
// Features supported in 5.5.0
|
|
#define MQTT_SUPPORTED_FEATURE_CIPHERSUITES_LIST
|
|
#endif
|
|
|
|
#endif /* ESP_IDF_VERSION */
|
|
#endif // _MQTT_SUPPORTED_FEATURES_H_
|