From acdb66d5c631763fcca1e489727b973df5b5054b Mon Sep 17 00:00:00 2001 From: faceleft <89391656+faceleft@users.noreply.github.com> Date: Sun, 21 Jan 2024 15:46:48 +0700 Subject: [PATCH] add const char * to esp_mqtt_client_subscribe() generic macros --- include/mqtt_client.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mqtt_client.h b/include/mqtt_client.h index 2b40a22..292c23a 100644 --- a/include/mqtt_client.h +++ b/include/mqtt_client.h @@ -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)