Skip to content

Commit acdb66d

Browse files
committed
add const char * to esp_mqtt_client_subscribe() generic macros
1 parent 7894dd0 commit acdb66d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/mqtt_client.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ esp_err_t esp_mqtt_client_stop(esp_mqtt_client_handle_t client);
463463
*/
464464
#define esp_mqtt_client_subscribe(client_handle, topic_type, qos_or_size) _Generic((topic_type), \
465465
char *: esp_mqtt_client_subscribe_single, \
466+
const char *: esp_mqtt_client_subscribe_single, \
466467
esp_mqtt_topic_t*: esp_mqtt_client_subscribe_multiple \
467468
)(client_handle, topic_type, qos_or_size)
468469

0 commit comments

Comments
 (0)