Skip to content

Commit

Permalink
Merge branch 'fix/subscribe_macro_type' into 'master'
Browse files Browse the repository at this point in the history
Update mqtt_client.h

See merge request espressif/esp-mqtt!198
  • Loading branch information
euripedesrocha committed Jan 26, 2024
2 parents d3e3c4e + acdb66d commit 5a35782
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/mqtt_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5a35782

Please sign in to comment.