Merge branch 'fix/subscribe_macro_type' into 'master'

Update mqtt_client.h

See merge request espressif/esp-mqtt!198
This commit is contained in:
Rocha Euripedes
2024-01-26 18:54:42 +08:00

View File

@ -463,6 +463,7 @@ esp_err_t esp_mqtt_client_stop(esp_mqtt_client_handle_t client);
*/
#define esp_mqtt_client_subscribe(client_handle, topic_type, qos_or_size) _Generic((topic_type), \
char *: esp_mqtt_client_subscribe_single, \
const char *: esp_mqtt_client_subscribe_single, \
esp_mqtt_topic_t*: esp_mqtt_client_subscribe_multiple \
)(client_handle, topic_type, qos_or_size)