Skip to content

Commit 5a35782

Browse files
Merge branch 'fix/subscribe_macro_type' into 'master'
Update mqtt_client.h See merge request espressif/esp-mqtt!198
2 parents d3e3c4e + acdb66d commit 5a35782

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)